3 namespace Drupal\Core\Entity\Controller;
5 use Drupal\Core\Controller\ControllerBase;
8 * Defines a generic controller to list entities.
10 class EntityListController extends ControllerBase {
13 * Provides the listing page for any entity type.
15 * @param string $entity_type
16 * The entity type to render.
19 * A render array as expected by drupal_render().
21 public function listing($entity_type) {
22 return $this->entityManager()->getListBuilder($entity_type)->render();