function hook_search_api_data_type_info_alter in Search API 8
Same name and namespace in other branches
- 7 search_api.api.php \hook_search_api_data_type_info_alter()
Alter the available data types.
Parameters
array $data_type_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_data_types" event instead.
See also
https://www.drupal.org/node/3059866
\Drupal\search_api\DataType\DataTypePluginBase
1 function implements hook_search_api_data_type_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_data_type_info_alter in tests/
search_api_test_hooks/ search_api_test_hooks.search_api.inc - Implements hook_search_api_data_type_info_alter().
1 invocation of hook_search_api_data_type_info_alter()
- DataTypePluginManager::__construct in src/
DataType/ DataTypePluginManager.php - Constructs a DataTypePluginManager object.
File
- ./
search_api.api.php, line 114 - Hooks provided by the Search API module.
Code
function hook_search_api_data_type_info_alter(array &$data_type_definitions) {
if (isset($data_type_definitions['text'])) {
$data_type_definitions['text']['label'] = t('Parsed text');
}
}