You are here

public function LogController::revisionShow in Log entity 8

Displays a log revision.

Parameters

int $log_revision: The log revision ID.

Return value

array An array suitable for drupal_render().

File

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

Class

LogController
Returns responses for Log routes.

Namespace

Drupal\log\Controller

Code

public function revisionShow($log_revision) {
  $log = $this
    ->entityManager()
    ->getStorage('log')
    ->loadRevision($log_revision);
  $log_view_controller = new LogViewController($this->entityManager, $this->renderer);
  $page = $log_view_controller
    ->view($log);
  unset($page['logs'][$log
    ->id()]['#cache']);
  return $page;
}