Display::getFormState

public Display::getFormState(ViewEntityInterface $view, $display_id, $js)

@todo Remove this and switch all usage of $form_state->get('section') to $form_state->get('type').

Overrides ViewsFormBase::getFormState

File

core/modules/views_ui/src/Form/Ajax/Display.php, line 33

Class

Display
Provides a form for editing the Views display.

Namespace

Drupal\views_ui\Form\Ajax

Code

1
2
3
4
5
public function getFormState(ViewEntityInterface $view, $display_id, $js) {
  $form_state = parent::getFormState($view, $display_id, $js);
  $form_state->set('section', $this->type);
  return $form_state;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.