Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 2 |
EntityListController | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
listing | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Entity\Controller\EntityListController. | |
*/ | |
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(); | |
} | |
} | |