ViewsFormBase::setType

protected ViewsFormBase::setType($type) Sets the type for this form. Parameters string $type: The type of the item this form is manipulating. File core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php, line 59 Class ViewsFormBase Provides a base class for Views UI AJAX forms. Namespace Drupal\views_ui\Form\Ajax Code protected function setType($type) { if ($type) { $this->type = $type; } }

ViewsFormBase::submitForm

public ViewsFormBase::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php, line 275 Class ViewsFormBase Provides a base class for Views UI AJAX forms. Namespace Drupal\views_ui\Form\Ajax Code publ

ViewsFormBase::validateForm

public ViewsFormBase::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php, line 269 Class ViewsFormBase Provides a base class for Views UI AJAX forms. Namespace Drupal\views_ui\Form\Ajax Code publi

ViewsFormInterface

Hierarchy interface \Drupal\Core\Form\FormInterfaceinterface \Drupal\views_ui\Form\Ajax\ViewsFormInterface File core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php, line 8 Namespace Drupal\views_ui\Form\Ajax Members Name Modifiers Type Description FormInterface::buildForm public function Form constructor. FormInterface::getFormId public function Returns a unique string identifying the form. FormInterface::submitForm public function Form submission

ViewsFormInterface::getForm

public ViewsFormInterface::getForm(ViewEntityInterface $view, $display_id, $js) Creates a new instance of this form. @todo When https://www.drupal.org/node/1843224 is in, this will return \Drupal\Core\Ajax\AjaxResponse instead of the array of AJAX commands. 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'.

ViewsFormInterface::getFormKey

public ViewsFormInterface::getFormKey() Returns the key that represents this form. Return value string The form key used in the URL, e.g., the string 'add-handler' in 'admin/structure/views/%/add-handler/%/%/%'. File core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php, line 17 Class ViewsFormInterface Namespace Drupal\views_ui\Form\Ajax Code public function getFormKey();

ViewsFormInterface::getFormState

public ViewsFormInterface::getFormState(ViewEntityInterface $view, $display_id, $js) 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 f

ViewsFormMainForm

Hierarchy class \Drupal\views\Form\ViewsFormMainForm implements FormInterface File core/modules/views/src/Form/ViewsFormMainForm.php, line 9 Namespace Drupal\views\Form Members Name Modifiers Type Description ViewsFormMainForm::buildForm public function Form constructor. Overrides FormInterface::buildForm ViewsFormMainForm::getFormId public function Returns a unique string identifying the form. Overrides FormInterface::getFormId ViewsFormMainForm::submitForm

ViewsFormMainForm::buildForm

public ViewsFormMainForm::buildForm(array $form, FormStateInterface $form_state, ViewExecutable $view = NULL, $output = []) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/views/src/Form/ViewsFormMainForm.php, line 20 Class ViewsFormMainForm Namespace Drupal\vie

ViewsFormMainForm::getFormId

public ViewsFormMainForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/views/src/Form/ViewsFormMainForm.php, line 14 Class ViewsFormMainForm Namespace Drupal\views\Form Code public function getFormId() { }