public NodeController::revisionPageTitle($node_revision)
Page title callback for a node revision.
Parameters
int $node_revision: The node revision ID.
Return value
string The page title.
File
- core/modules/node/src/Controller/NodeController.php, line 145
Class
- NodeController
- Returns responses for Node routes.
Namespace
Drupal\node\Controller
Code
1 2 3 4 | public function revisionPageTitle( $node_revision ) { $node = $this ->entityManager()->getStorage( 'node' )->loadRevision( $node_revision ); return $this ->t( 'Revision of %title from %date' , array ( '%title' => $node ->label(), '%date' => format_date( $node ->getRevisionCreationTime()))); } |
Please login to continue.