public EntityViewController::__construct(EntityManagerInterface $entity_manager, RendererInterface $renderer)
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 39
Class
- EntityViewController
- Defines a generic controller to render a single entity.
Namespace
Drupal\Core\Entity\Controller
Code
public function __construct(EntityManagerInterface $entity_manager, RendererInterface $renderer) { $this->entityManager = $entity_manager; $this->renderer = $renderer; }
Please login to continue.