function hook_language_types_info_alter
Same name in other branches
- 7.x modules/system/language.api.php \hook_language_types_info_alter()
- 8.9.x core/modules/language/language.api.php \hook_language_types_info_alter()
- 10 core/modules/language/language.api.php \hook_language_types_info_alter()
- 11.x core/modules/language/language.api.php \hook_language_types_info_alter()
Perform alterations on language types.
Parameters
array $language_types: Array of language type definitions.
See also
Related topics
3 functions implement hook_language_types_info_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- content_translation_language_types_info_alter in core/
modules/ content_translation/ content_translation.module - Implements hook_language_type_info_alter().
- language_language_types_info_alter in core/
modules/ language/ language.module - Implements hook_language_types_info_alter().
- language_test_language_types_info_alter in core/
modules/ language/ tests/ language_test/ language_test.module - Implements hook_language_types_info_alter().
1 invocation of hook_language_types_info_alter()
- ConfigurableLanguageManager::getDefinedLanguageTypesInfo in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns information about all defined language types.
File
-
core/
modules/ language/ language.api.php, line 60
Code
function hook_language_types_info_alter(array &$language_types) {
if (isset($language_types['custom_language_type'])) {
$language_types['custom_language_type_custom']['description'] = t('A far better description.');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.