hook_search_plugin_alter(array &$definitions)
Alter search plugin definitions.
array $definitions: The array of search plugin definitions, keyed by plugin ID.
\Drupal\search\Annotation\SearchPlugin
\Drupal\search\SearchPluginManager
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