You are here

protected function FieldableEdgeEntityForm::init in Apigee Edge 8

Initialize the form state and the entity before the first form build.

Overrides EntityForm::init

File

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

Class

FieldableEdgeEntityForm
Base entity form for fieldable Apigee Edge entity types.

Namespace

Drupal\apigee_edge\Entity\Form

Code

protected function init(FormStateInterface $form_state) {
  $form_display = EntityFormDisplay::collectRenderDisplay($this->entity, $this
    ->getOperation());
  $this
    ->setFormDisplay($form_display, $form_state);
  parent::init($form_state);
}