function hook_language_negotiation_info_alter
Same name in other branches
- 9 core/modules/language/language.api.php \hook_language_negotiation_info_alter()
- 8.9.x core/modules/language/language.api.php \hook_language_negotiation_info_alter()
- 10 core/modules/language/language.api.php \hook_language_negotiation_info_alter()
- 11.x core/modules/language/language.api.php \hook_language_negotiation_info_alter()
Perform alterations on language negoiation providers.
Parameters
$language_providers: Array of language negotiation provider definitions.
See also
hook_language_negotiation_info()
Related topics
1 function implements hook_language_negotiation_info_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- locale_test_language_negotiation_info_alter in modules/
locale/ tests/ locale_test.module - Implements hook_language_negotiation_info_alter().
1 invocation of hook_language_negotiation_info_alter()
- language_negotiation_info in includes/
language.inc - Returns all the defined language negotiation providers.
File
-
modules/
system/ language.api.php, line 167
Code
function hook_language_negotiation_info_alter(array &$language_providers) {
if (isset($language_providers['custom_language_provider'])) {
$language_providers['custom_language_provider']['config'] = 'admin/config/regional/language/configure/custom-language-provider';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.