EntityViewController::viewRevision

public EntityViewController::viewRevision(EntityInterface $_entity_revision, $view_mode = 'full')

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.

File

core/lib/Drupal/Core/Entity/Controller/EntityViewController.php, line 119

Class

EntityViewController
Defines a generic controller to render a single entity.

Namespace

Drupal\Core\Entity\Controller

Code

public function viewRevision(EntityInterface $_entity_revision, $view_mode = 'full') {
  return $this->view($_entity_revision, $view_mode);
}
doc_Drupal
2016-10-29 09:08:50
Comments
Leave a Comment

Please login to continue.