function SearchPluginBase::searchFormAlter
Same name in other branches
- 9 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::searchFormAlter()
- 8.9.x core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::searchFormAlter()
- 11.x core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::searchFormAlter()
Overrides SearchInterface::searchFormAlter
1 method overrides SearchPluginBase::searchFormAlter()
- NodeSearch::searchFormAlter in core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php - Alters the search form when being built for a given plugin.
File
-
core/
modules/ search/ src/ Plugin/ SearchPluginBase.php, line 115
Class
- SearchPluginBase
- Defines a base class for plugins wishing to support search.
Namespace
Drupal\search\PluginCode
public function searchFormAlter(array &$form, FormStateInterface $form_state) {
// Empty default implementation.
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.