ViewsHandlerAnnotationBase

Defines an abstract base class for all views handler annotations. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Component\Annotation\PluginIDclass \Drupal\views\Annotation\ViewsHandlerAnnotationBase File core/modules/views/src/Annotation/ViewsHandlerAnnotationBase.php, line 10 Namespace Drupal\views\Annotation Members Name Modifiers Type Description AnnotationBase::$class protected property The class used for th

ViewsFormMainForm::validateForm

public ViewsFormMainForm::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 FormInterface::validateForm File core/modules/views/src/Form/ViewsFormMainForm.php, line 103 Class ViewsFormMainForm Namespace Drupal\views\Form Code public function validateForm(array &$form, For

ViewsFormMainForm::submitForm

public ViewsFormMainForm::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/src/Form/ViewsFormMainForm.php, line 126 Class ViewsFormMainForm Namespace Drupal\views\Form Code public function submitForm(array &$form, FormState

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() { }

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

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

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

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::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

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