public function BibciteEntityPreviewController::__construct in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/src/Controller/BibciteEntityPreviewController.php \Drupal\bibcite_entity\Controller\BibciteEntityPreviewController::__construct()
Creates an EntityViewController object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
Overrides EntityViewController::__construct
File
- modules/
bibcite_entity/ src/ Controller/ BibciteEntityPreviewController.php, line 27
Class
- BibciteEntityPreviewController
- Defines a controller to render a single bibcite entity in preview.
Namespace
Drupal\bibcite_entity\ControllerCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, EntityRepositoryInterface $repository) {
parent::__construct($entity_type_manager, $renderer);
$this->repository = $repository;
}