public function EntityViewController::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Controller/EntityViewController.php \Drupal\Core\Entity\Controller\EntityViewController::__construct()
Creates an EntityViewController object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
File
- core/
lib/ Drupal/ Core/ Entity/ Controller/ EntityViewController.php, line 44 - Contains \Drupal\Core\Entity\Controller\EntityViewController.
Class
- EntityViewController
- Defines a generic controller to render a single entity.
Namespace
Drupal\Core\Entity\ControllerCode
public function __construct(EntityManagerInterface $entity_manager, RendererInterface $renderer) {
$this->entityManager = $entity_manager;
$this->renderer = $renderer;
}