EntityViewController::__construct

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;
}
doc_Drupal
2016-10-29 09:08:50
Comments
Leave a Comment

Please login to continue.