function ExposedFormPluginInterface::exposedFormAlter
Same name in other branches
- 9 core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface::exposedFormAlter()
- 8.9.x core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface::exposedFormAlter()
- 11.x core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface::exposedFormAlter()
Alters the exposed form.
The exposed form is built by calling the renderExposedForm() method on this class, and then letting each exposed filter and sort handler add widgets to the form. After that is finished, this method is called to let the class alter the finished form.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
See also
\Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface::renderExposedForm()
\Drupal\views\Form\ViewsExposedForm::buildForm()
1 method overrides ExposedFormPluginInterface::exposedFormAlter()
- ExposedFormPluginBase::exposedFormAlter in core/
modules/ views/ src/ Plugin/ views/ exposed_form/ ExposedFormPluginBase.php - Alters the exposed form.
File
-
core/
modules/ views/ src/ Plugin/ views/ exposed_form/ ExposedFormPluginInterface.php, line 120
Class
- ExposedFormPluginInterface
- Interface for exposed filter form plugins.
Namespace
Drupal\views\Plugin\views\exposed_formCode
public function exposedFormAlter(&$form, FormStateInterface $form_state);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.