You are here

protected function EntityDisplayModeFormBase::init in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php \Drupal\field_ui\Form\EntityDisplayModeFormBase::init()

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

Overrides EntityForm::init

File

core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php, line 68
Contains \Drupal\field_ui\Form\EntityDisplayModeFormBase.

Class

EntityDisplayModeFormBase
Provides the generic base class for entity display mode forms.

Namespace

Drupal\field_ui\Form

Code

protected function init(FormStateInterface $form_state) {
  parent::init($form_state);
  $this->entityType = $this->entityManager
    ->getDefinition($this->entity
    ->getEntityTypeId());
}