0a6911a92fc18fb89aa07e97a4be53556c849bfd
[yaffs-website] / web / core / modules / field_ui / src / Controller / FieldConfigListController.php
1 <?php
2
3 namespace Drupal\field_ui\Controller;
4
5 use Drupal\Core\Entity\Controller\EntityListController;
6 use Drupal\Core\Routing\RouteMatchInterface;
7
8 /**
9  * Defines a controller to list field instances.
10  */
11 class FieldConfigListController extends EntityListController {
12
13   /**
14    * Shows the 'Manage fields' page.
15    *
16    * @param string $entity_type_id
17    *   The entity type.
18    * @param string $bundle
19    *   The entity bundle.
20    * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
21    *   The current route match.
22    *
23    * @return array
24    *   A render array as expected by drupal_render().
25    */
26   public function listing($entity_type_id = NULL, $bundle = NULL, RouteMatchInterface $route_match = NULL) {
27     return $this->entityManager()->getListBuilder('field_config')->render($entity_type_id, $bundle);
28   }
29
30 }