You are here

function hook_search_api_parse_mode_info_alter in Search API 8

Alter the available parse modes.

Parameters

array $parse_mode_definitions: The definitions of the parse mode plugins.

Deprecated

in search_api:8.x-1.14 and is removed from search_api:2.0.0. Please use the "search_api.gathering_parse_modes" event instead.

See also

https://www.drupal.org/node/3059866

\Drupal\search_api\ParseMode\ParseModePluginBase

1 function implements hook_search_api_parse_mode_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

search_api_test_hooks_search_api_parse_mode_info_alter in tests/search_api_test_hooks/search_api_test_hooks.search_api.inc
Implements hook_search_api_parse_mode_info_alter().
1 invocation of hook_search_api_parse_mode_info_alter()
ParseModePluginManager::__construct in src/ParseMode/ParseModePluginManager.php
Constructs a ParseModePluginManager object.

File

./search_api.api.php, line 132
Hooks provided by the Search API module.

Code

function hook_search_api_parse_mode_info_alter(array &$parse_mode_definitions) {
  if (isset($parse_mode_definitions['direct'])) {
    $parse_mode_definitions['direct']['label'] = t('Solr syntax');
  }
}