function hook_language_negotiation_info_alter

Perform alterations on language negotiation methods.

Parameters

$negotiation_info: Array of language negotiation method 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.

language_test_language_negotiation_info_alter in drupal/core/modules/language/tests/language_test.module
Implements hook_language_negotiation_info_alter().
1 invocation of hook_language_negotiation_info_alter()
language_negotiation_info in drupal/core/includes/language.inc
Returns all defined language negotiation methods.

File

drupal/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 &$negotiation_info) {
  if (isset($negotiation_info['custom_language_method'])) {
    $negotiation_info['custom_language_method']['config'] = 'admin/config/regional/language/detection/custom-language-method';
  }
}