You are here

public function ViewFormBase::init in Zircon Profile 8

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

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

Overrides EntityForm::init

File

core/modules/views_ui/src/ViewFormBase.php, line 30
Contains \Drupal\views_ui\ViewFormBase.

Class

ViewFormBase
Base form for Views forms.

Namespace

Drupal\views_ui

Code

public function init(FormStateInterface $form_state) {
  parent::init($form_state);

  // @todo Remove the need for this.
  $form_state
    ->loadInclude('views_ui', 'inc', 'admin');
  $form_state
    ->set('view', $this->entity);
}