You are here

public function EdgeEntityFieldConfigListController::listing in Apigee Edge 8

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 FieldConfigListController::listing

File

src/Controller/EdgeEntityFieldConfigListController.php, line 63

Class

EdgeEntityFieldConfigListController
Allows to alter field config UIs of Apigee Edge entities.

Namespace

Drupal\apigee_edge\Controller

Code

public function listing($entity_type_id = NULL, $bundle = NULL, RouteMatchInterface $route_match = NULL) {
  $page = parent::listing($entity_type_id, $bundle, $route_match);
  $event = new EdgeEntityFieldConfigListAlterEvent($entity_type_id, $page);
  $this->eventDispatcher
    ->dispatch(EdgeEntityFieldConfigListAlterEvent::EVENT_NAME, $event);
  return $event
    ->getPage();
}