public function EntityListController::listing in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/Controller/EntityListController.php \Drupal\Core\Entity\Controller\EntityListController::listing()
Provides the listing page for any entity type.
Parameters
string $entity_type: The entity type to render.
Return value
array A render array as expected by \Drupal\Core\Render\RendererInterface::render().
2 methods override EntityListController::listing()
- BlockListController::listing in core/
modules/ block/ src/ Controller/ BlockListController.php - Shows the block administration page.
- FieldConfigListController::listing in core/
modules/ field_ui/ src/ Controller/ FieldConfigListController.php - Shows the 'Manage fields' page.
File
- core/
lib/ Drupal/ Core/ Entity/ Controller/ EntityListController.php, line 22
Class
- EntityListController
- Defines a generic controller to list entities.
Namespace
Drupal\Core\Entity\ControllerCode
public function listing($entity_type) {
return $this
->entityTypeManager()
->getListBuilder($entity_type)
->render();
}