function ViewFormBase::init
Same name in other branches
- 9 core/modules/views_ui/src/ViewFormBase.php \Drupal\views_ui\ViewFormBase::init()
- 10 core/modules/views_ui/src/ViewFormBase.php \Drupal\views_ui\ViewFormBase::init()
- 11.x core/modules/views_ui/src/ViewFormBase.php \Drupal\views_ui\ViewFormBase::init()
Overrides EntityForm::init
File
-
core/
modules/ views_ui/ src/ ViewFormBase.php, line 25
Class
- ViewFormBase
- Base form for Views forms.
Namespace
Drupal\views_uiCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.