You are here

public function ViewsFormInterface::getFormState in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php \Drupal\views_ui\Form\Ajax\ViewsFormInterface::getFormState()

Gets the form state for this form.

Parameters

\Drupal\views\ViewEntityInterface $view: The view being edited.

string|null $display_id: The display ID being edited, or NULL to load the first available display.

string $js: If this is an AJAX form, it will be the string 'ajax'. Otherwise, it will be 'nojs'. This determines the response.

Return value

\Drupal\Core\Form\FormStateInterface The current state of the form.

1 method overrides ViewsFormInterface::getFormState()
ViewsFormBase::getFormState in core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
Gets the form state for this form.

File

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

Class

ViewsFormInterface

Namespace

Drupal\views_ui\Form\Ajax

Code

public function getFormState(ViewEntityInterface $view, $display_id, $js);