You are here

public function ListUsageController::__construct in Entity Usage 8

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

ListUsageController constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The EntityManager service.

\Drupal\entity_usage\EntityUsageInterface $entity_usage: The EntityUsage service.

File

src/Controller/ListUsageController.php, line 40

Class

ListUsageController
Controller for our pages.

Namespace

Drupal\entity_usage\Controller

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityUsageInterface $entity_usage) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityUsage = $entity_usage;
}