public function EventController::revisionShow in Event 8
Displays a Event revision.
Parameters
int $event_revision: The Event revision ID.
Return value
array An array suitable for drupal_render().
File
- src/
Controller/ EventController.php, line 30
Class
- EventController
- Class EventController.
Namespace
Drupal\event\ControllerCode
public function revisionShow($event_revision) {
$event = EntityTypeManager::getStorage('event')
->loadRevision($event_revision);
$view_builder = EntityTypeManager::getViewBuilder('event');
return $view_builder
->view($event);
}