public function HeartbeatStreamController::revisionShow in Heartbeat 8
Displays a Heartbeat stream revision.
Parameters
int $heartbeat_stream_revision: The Heartbeat stream revision ID.
Return value
array An array suitable for drupal_render().
File
- src/
Controller/ HeartbeatStreamController.php, line 117
Class
- HeartbeatStreamController
- Class HeartbeatStreamController.
Namespace
Drupal\heartbeat\ControllerCode
public function revisionShow($heartbeat_stream_revision) {
$heartbeat_stream = $this
->entityManager()
->getStorage('heartbeat_stream')
->loadRevision($heartbeat_stream_revision);
$view_builder = $this
->entityManager()
->getViewBuilder('heartbeat_stream');
return $view_builder
->view($heartbeat_stream);
}