You are here

public function EntityListController::listing in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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_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 26
Contains \Drupal\Core\Entity\Controller\EntityListController.

Class

EntityListController
Defines a generic controller to list entities.

Namespace

Drupal\Core\Entity\Controller

Code

public function listing($entity_type) {
  return $this
    ->entityManager()
    ->getListBuilder($entity_type)
    ->render();
}