You are here

public function EntityController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Controller/EntityController.php \Drupal\Core\Entity\Controller\EntityController::__construct()

Constructs a new EntityController.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

File

core/lib/Drupal/Core/Entity/Controller/EntityController.php, line 45
Contains \Drupal\Core\Entity\Controller\EntityController.

Class

EntityController
Provides generic entity title callbacks for use in routing.

Namespace

Drupal\Core\Entity\Controller

Code

public function __construct(EntityManagerInterface $entity_manager, TranslationInterface $string_translation) {
  $this->entityManager = $entity_manager;
  $this->stringTranslation = $string_translation;
}