1 language.api.php hook_language_negotiation_info_alter(array &$language_providers)

Perform alterations on language negoiation providers.

Parameters

$language_providers: Array of language negotiation provider definitions.

See also

hook_language_negotiation_info()

Related topics

File

core/modules/system/language.api.php, line 167
Hooks provided by the base system for language support.

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';
  }
}