public function ReferenceViewController::view in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 modules/bibcite_entity/src/Controller/ReferenceViewController.php \Drupal\bibcite_entity\Controller\ReferenceViewController::view()
Provides a page to render a single entity.
Parameters
\Drupal\Core\Entity\EntityInterface $_entity: The Entity to be rendered. Note this variable is named $_entity 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 as expected by \Drupal\Core\Render\RendererInterface::render().
Overrides EntityViewController::view
File
- modules/
bibcite_entity/ src/ Controller/ ReferenceViewController.php, line 55
Class
- ReferenceViewController
- Class ReferenceViewController.
Namespace
Drupal\bibcite_entity\ControllerCode
public function view(EntityInterface $bibcite_reference, $view_mode = 'full') {
$view_mode = $this->config
->get('display_override.reference_page_view_mode');
return parent::view($bibcite_reference, $view_mode);
}