class EntityListController
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/Controller/EntityListController.php \Drupal\Core\Entity\Controller\EntityListController
Defines a generic controller to list entities.
Hierarchy
- class \Drupal\Core\Controller\ControllerBase extends \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\Core\Logger\LoggerChannelTrait, \Drupal\Core\Messenger\MessengerTrait, \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Core\Entity\Controller\EntityListController implements \Drupal\Core\Controller\ControllerBase
Expanded class hierarchy of EntityListController
2 files declare their use of EntityListController
- BlockListController.php in core/
modules/ block/ src/ Controller/ BlockListController.php - FieldConfigListController.php in core/
modules/ field_ui/ src/ Controller/ FieldConfigListController.php
File
-
core/
lib/ Drupal/ Core/ Entity/ Controller/ EntityListController.php, line 10
Namespace
Drupal\Core\Entity\ControllerView source
class EntityListController extends ControllerBase {
/**
* Provides the listing page for any entity type.
*
* @param string $entity_type
* The entity type to render.
*
* @return array
* A render array as expected by
* \Drupal\Core\Render\RendererInterface::render().
*/
public function listing($entity_type) {
return $this->entityTypeManager()
->getListBuilder($entity_type)
->render();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.