public function ViewFormControllerBase::init

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

Overrides EntityFormController::init

2 calls to ViewFormControllerBase::init()
ViewAddFormController::init in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php
Initialize the form state and the entity before the first form build.
ViewCloneFormController::init in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php
Initialize the form state and the entity before the first form build.
2 methods override ViewFormControllerBase::init()
ViewAddFormController::init in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php
Initialize the form state and the entity before the first form build.
ViewCloneFormController::init in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php
Initialize the form state and the entity before the first form build.

File

drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewFormControllerBase.php, line 29
Contains Drupal\views_ui\ViewFormControllerBase.

Class

ViewFormControllerBase
Base form controller for Views forms.

Namespace

Drupal\views_ui

Code

public function init(array &$form_state) {
  parent::init($form_state);
  if ($display_id = \Drupal::request()->attributes
    ->get('display_id')) {
    $this->displayID = $display_id;
  }

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