function hook_search_plugin_alter
hook_search_plugin_alter(array &$definitions)
Alter search plugin definitions.
Parameters
array $definitions: The array of search plugin definitions, keyed by plugin ID.
See also
\Drupal\search\Annotation\SearchPlugin
\Drupal\search\SearchPluginManager
Related topics
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/modules/search/search.api.php, line 76
- Hooks provided by the Search module.
Code
function hook_search_plugin_alter(array &$definitions) { if (isset($definitions['node_search'])) { $definitions['node_search']['title'] = t('Nodes'); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!search!search.api.php/function/hook_search_plugin_alter/8.1.x