You are here

public function FieldUiTitleController::__construct in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 src/Controller/FieldUiTitleController.php \Drupal\lightning_core\Controller\FieldUiTitleController::__construct()
  2. 8.2 src/Controller/FieldUiTitleController.php \Drupal\lightning_core\Controller\FieldUiTitleController::__construct()
  3. 8.3 src/Controller/FieldUiTitleController.php \Drupal\lightning_core\Controller\FieldUiTitleController::__construct()
  4. 8.4 src/Controller/FieldUiTitleController.php \Drupal\lightning_core\Controller\FieldUiTitleController::__construct()

FieldUiTitleController constructor.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\StringTranslation\TranslationInterface $translator: The translation service.

File

src/Controller/FieldUiTitleController.php, line 34

Class

FieldUiTitleController
Dynamically generates titles for various Field UI routes.

Namespace

Drupal\lightning_core\Controller

Code

public function __construct(RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $translator) {
  $this->routeMatch = $route_match;
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $translator;
}