public function RevisionController::view in Entity API 8.0
Provides a page to render a single entity revision.
Parameters
\Drupal\Core\Entity\EntityInterface $_entity_revision: The Entity to be rendered. Note this variable is named $_entity_revision rather than $entity to prevent collisions with other named placeholders in the route.
string $view_mode: (optional) The view mode that should be used to display the entity. Defaults to 'full'.
Return value
array A render array.
Overrides EntityViewController::view
File
- src/
Controller/ RevisionController.php, line 32 - Contains \Drupal\entity\Controller\RevisionController.
Class
- RevisionController
- Provides some controllers related with entity revisions.
Namespace
Drupal\entity\ControllerCode
public function view(EntityInterface $_entity_revision, $view_mode = 'full') {
return parent::view($_entity_revision, $view_mode);
}