public function EntityListController::__construct

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Entity/Controller/EntityListController.php \Drupal\Core\Entity\Controller\EntityListController::__construct()
  2. 8.x drupal/core/lib/Drupal/Core/Entity/EntityListController.php \Drupal\Core\Entity\EntityListController::__construct()

Constructs a new EntityListController object.

Parameters

string $entity_type: The type of entity to be listed.

array $entity_info: An array of entity info for the entity type.

\Drupal\Core\Entity\EntityStorageControllerInterface $storage: The entity storage controller class.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke hooks on.

1 call to EntityListController::__construct()
ActionListController::__construct in drupal/core/modules/action/lib/Drupal/action/ActionListController.php
Constructs a new ActionListController object.
1 method overrides EntityListController::__construct()
ActionListController::__construct in drupal/core/modules/action/lib/Drupal/action/ActionListController.php
Constructs a new ActionListController object.

File

drupal/core/lib/Drupal/Core/Entity/EntityListController.php, line 72
Contains \Drupal\Core\Entity\EntityListController.

Class

EntityListController
Provides a generic implementation of an entity list controller.

Namespace

Drupal\Core\Entity

Code

public function __construct($entity_type, array $entity_info, EntityStorageControllerInterface $storage, ModuleHandlerInterface $module_handler) {
  $this->entityType = $entity_type;
  $this->storage = $storage;
  $this->entityInfo = $entity_info;
  $this->moduleHandler = $module_handler;
}