You are here

public function HeartbeatController::revisionShow in Heartbeat 8

Displays a Heartbeat revision.

Parameters

int $heartbeat_revision: The Heartbeat revision ID.

Return value

array An array suitable for drupal_render().

File

src/Controller/HeartbeatController.php, line 62

Class

HeartbeatController
Class HeartbeatController.

Namespace

Drupal\heartbeat\Controller

Code

public function revisionShow($heartbeat_revision) {
  $heartbeat = $this
    ->entityManager()
    ->getStorage('heartbeat')
    ->loadRevision($heartbeat_revision);
  $view_builder = $this
    ->entityManager()
    ->getViewBuilder('heartbeat');
  return $view_builder
    ->view($heartbeat);
}