function FieldConfigListController::listing

Same name in other branches
  1. 8.9.x core/modules/field_ui/src/Controller/FieldConfigListController.php \Drupal\field_ui\Controller\FieldConfigListController::listing()
  2. 10 core/modules/field_ui/src/Controller/FieldConfigListController.php \Drupal\field_ui\Controller\FieldConfigListController::listing()
  3. 11.x core/modules/field_ui/src/Controller/FieldConfigListController.php \Drupal\field_ui\Controller\FieldConfigListController::listing()

Shows the 'Manage fields' page.

Parameters

string $entity_type_id: The entity type.

string $bundle: The entity bundle.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

Return value

array A render array as expected by \Drupal\Core\Render\RendererInterface::render().

Overrides EntityListController::listing

File

core/modules/field_ui/src/Controller/FieldConfigListController.php, line 27

Class

FieldConfigListController
Defines a controller to list field instances.

Namespace

Drupal\field_ui\Controller

Code

public function listing($entity_type_id = NULL, $bundle = NULL, RouteMatchInterface $route_match = NULL) {
    return $this->entityTypeManager()
        ->getListBuilder('field_config')
        ->render($entity_type_id, $bundle);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.