ViewsExposedForm::__construct

public ViewsExposedForm::__construct(ExposedFormCache $exposed_form_cache) Constructs a new ViewsExposedForm Parameters \Drupal\views\ExposedFormCache $exposed_form_cache: The exposed form cache. File core/modules/views/src/Form/ViewsExposedForm.php, line 31 Class ViewsExposedForm Provides the views exposed form. Namespace Drupal\views\Form Code public function __construct(ExposedFormCache $exposed_form_cache) { $this->exposedFormCache = $exposed_form_cache; }

ViewsField

Defines a Plugin annotation object for views field handlers. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Component\Annotation\PluginIDclass \Drupal\views\Annotation\ViewsHandlerAnnotationBaseclass \Drupal\views\Annotation\ViewsField See also \Drupal\views\Plugin\views\field\FieldPluginBase Related topics Annotations Annotations for class discovery and metadata description. Views field handler plugins Handler plugins for Views fi

ViewsFilter

Defines a Plugin annotation object for views filter handlers. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Component\Annotation\PluginIDclass \Drupal\views\Annotation\ViewsHandlerAnnotationBaseclass \Drupal\views\Annotation\ViewsFilter See also \Drupal\views\Plugin\views\filter\FilterPluginBase Related topics Annotations Annotations for class discovery and metadata description. Views filter handler plugins Plugins that handle vie

ViewsFormBase

Provides a base class for Views UI AJAX forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\views_ui\Form\Ajax\ViewsFormBase implements ViewsFormInterface File core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php, line 25 Namespace Drupal\views_ui\Form\Ajax Members Name Modifi

ViewsFormBase::$id

The ID of the item this form is manipulating. Type: string File core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php, line 32 Class ViewsFormBase Provides a base class for Views UI AJAX forms. Namespace Drupal\views_ui\Form\Ajax Code protected $id;

ViewsFormBase::$type

The type of item this form is manipulating. Type: string File core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php, line 39 Class ViewsFormBase Provides a base class for Views UI AJAX forms. Namespace Drupal\views_ui\Form\Ajax Code protected $type;

ViewsFormBase::ajaxFormWrapper

protected ViewsFormBase::ajaxFormWrapper($form_class, FormStateInterface &$form_state) Wrapper for handling AJAX forms. Wrapper around \Drupal\Core\Form\FormBuilderInterface::buildForm() to handle some AJAX stuff automatically. This makes some assumptions about the client. Parameters \Drupal\Core\Form\FormInterface|string $form_class: The value must be one of the following: The name of a class that implements \Drupal\Core\Form\FormInterface. An instance of a class that implements \Drupal\C

ViewsFormBase::getForm

public ViewsFormBase::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'. Othe

ViewsFormBase::getFormState

public ViewsFormBase::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 form.

ViewsFormBase::setID

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