You are here

public function FieldableEdgeEntityForm::form in Apigee Edge 8

Gets the actual form array to be built.

Overrides EntityForm::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

2 calls to FieldableEdgeEntityForm::form()
AppForm::form in src/Entity/Form/AppForm.php
Gets the actual form array to be built.
TeamForm::form in modules/apigee_edge_teams/src/Entity/Form/TeamForm.php
Gets the actual form array to be built.
2 methods override FieldableEdgeEntityForm::form()
AppForm::form in src/Entity/Form/AppForm.php
Gets the actual form array to be built.
TeamForm::form in modules/apigee_edge_teams/src/Entity/Form/TeamForm.php
Gets the actual form array to be built.

File

src/Entity/Form/FieldableEdgeEntityForm.php, line 58

Class

FieldableEdgeEntityForm
Base entity form for fieldable Apigee Edge entity types.

Namespace

Drupal\apigee_edge\Entity\Form

Code

public function form(array $form, FormStateInterface $form_state) {
  $form = parent::form($form, $form_state);
  unset($form['#after_build']);
  $this
    ->getFormDisplay($form_state)
    ->buildForm($this->entity, $form, $form_state);
  return $form;
}