
| Current Path : /var/www/html/ift/web/core/lib/Drupal/Core/Entity/Controller/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/lib/Drupal/Core/Entity/Controller/EntityListController.php |
<?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\Core\Render\RendererInterface::render().
*/
public function listing($entity_type) {
return $this->entityTypeManager()->getListBuilder($entity_type)->render();
}
}