public function EntityListController::__construct

Constructs a new EntityListController object.

Parameters

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

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

File

drupal/core/lib/Drupal/Core/Entity/EntityListController.php, line 46
Definition of 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, EntityStorageControllerInterface $storage) {
  $this->entityType = $entity_type;
  $this->storage = $storage;
  $this->entityInfo = entity_get_info($this->entityType);
}