function entity_list_controller

Returns an entity list controller for a given entity type.

Parameters

string $entity_type: The type of the entity.

Return value

Drupal\Core\Entity\EntityListControllerInterface An entity list controller.

File

drupal/core/includes/entity.inc, line 552
Entity API for handling entities like nodes or users.

Code

function entity_list_controller($entity_type) {
  return Drupal::entityManager()
    ->getListController($entity_type);
}