You are here

public function DeveloperAppFieldConfigListAlterEventSubscriber::alterPage in Apigee Edge 8

Alters the field config UI page.

Parameters

\Drupal\apigee_edge\Event\EdgeEntityFieldConfigListAlterEvent $event: The field config list alter event.

File

src/EventSubscriber/DeveloperAppFieldConfigListAlterEventSubscriber.php, line 65

Class

DeveloperAppFieldConfigListAlterEventSubscriber
Adds base field configuration form to developer app entity's field config UI.

Namespace

Drupal\apigee_edge\EventSubscriber

Code

public function alterPage(EdgeEntityFieldConfigListAlterEvent $event) {
  if ($event
    ->getEntityType() === 'developer_app') {
    $page =& $event
      ->getPage();
    $page['base_field_config'] = $this->formBuilder
      ->getForm(DeveloperAppBaseFieldConfigForm::class);
  }
}