Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Controller / EntityListController.php
1 <?php
2
3 namespace Drupal\Core\Entity\Controller;
4
5 use Drupal\Core\Controller\ControllerBase;
6
7 /**
8  * Defines a generic controller to list entities.
9  */
10 class EntityListController extends ControllerBase {
11
12   /**
13    * Provides the listing page for any entity type.
14    *
15    * @param string $entity_type
16    *   The entity type to render.
17    *
18    * @return array
19    *   A render array as expected by drupal_render().
20    */
21   public function listing($entity_type) {
22     return $this->entityManager()->getListBuilder($entity_type)->render();
23   }
24
25 }