Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[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
25    *   \Drupal\Core\Render\RendererInterface::render().
26    */
27   public function listing($entity_type_id = NULL, $bundle = NULL, RouteMatchInterface $route_match = NULL) {
28     return $this->entityManager()->getListBuilder('field_config')->render($entity_type_id, $bundle);
29   }
30
31 }