EntityListController::listing

public EntityListController::listing($entity_type)

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().

File

core/lib/Drupal/Core/Entity/Controller/EntityListController.php, line 21

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();
}
doc_Drupal
2016-10-29 09:06:56
Comments
Leave a Comment

Please login to continue.