Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Entity/Controller/EntityListController.php @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
line wrap: on
line source
<?php namespace Drupal\Core\Entity\Controller; use Drupal\Core\Controller\ControllerBase; /** * Defines a generic controller to list entities. */ 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_render(). */ public function listing($entity_type) { return $this->entityManager()->getListBuilder($entity_type)->render(); } }