You are here

public function ReferenceViewController::viewRevision in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/Controller/ReferenceViewController.php \Drupal\bibcite_entity\Controller\ReferenceViewController::viewRevision()

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::viewRevision

File

modules/bibcite_entity/src/Controller/ReferenceViewController.php, line 63

Class

ReferenceViewController
Class ReferenceViewController.

Namespace

Drupal\bibcite_entity\Controller

Code

public function viewRevision(EntityInterface $_entity_revision, $view_mode = 'full') {
  $view_mode = $this->config
    ->get('display_override.reference_page_view_mode');
  return parent::viewRevision($_entity_revision, $view_mode);
}