Creates a new list controller instance.
string $entity_type: The entity type for this list controller.
\Drupal\Core\Entity\EntityListControllerInterface A list controller instance.
public function getListController($entity_type) {
if (!isset($this->controllers['listing'][$entity_type])) {
$class = $this
->getControllerClass($entity_type, 'list');
if (in_array('Drupal\\Core\\Entity\\EntityControllerInterface', class_implements($class))) {
$this->controllers['listing'][$entity_type] = $class::createInstance($this->container, $entity_type, $this
->getDefinition($entity_type));
}
else {
$this->controllers['listing'][$entity_type] = new $class($entity_type, $this
->getStorageController($entity_type));
}
}
return $this->controllers['listing'][$entity_type];
}