You are here

public function LogController::revisionPageTitle in Log entity 8

Page title callback for a log revision.

Parameters

int $log_revision: The log revision ID.

Return value

string The page title.

File

src/Controller/LogController.php, line 149
Contains \Drupal\log\Controller\LogController.

Class

LogController
Returns responses for Log routes.

Namespace

Drupal\log\Controller

Code

public function revisionPageTitle($log_revision) {
  $log = $this
    ->entityManager()
    ->getStorage('log')
    ->loadRevision($log_revision);
  return $this
    ->t('Revision of %title from %date', array(
    '%title' => $log
      ->label(),
    '%date' => format_date($log
      ->getRevisionCreationTime()),
  ));
}