public function ProjectController::revisionShow in Drupal PM (Project Management) 4.x
Displays a Project revision.
Parameters
int $pm_project_revision: The Project revision ID.
Return value
array An array suitable for drupal_render().
File
- modules/
pm_project/ src/ Controller/ ProjectController.php, line 53
Class
- ProjectController
- Class ProjectController.
Namespace
Drupal\pm_project\ControllerCode
public function revisionShow($pm_project_revision) {
$pm_project = $this
->entityTypeManager()
->getStorage('pm_project')
->loadRevision($pm_project_revision);
$view_builder = $this
->entityTypeManager()
->getViewBuilder('pm_project');
return $view_builder
->view($pm_project);
}