hook_language_negotiation_info_alter

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 hook_language_negotiation_info_alter(array &$language_providers)

Perform alterations on language providers.

Parameters

$language_providers Array of language provider definitions.

Related topics

Code

modules/locale/locale.api.php, line 164

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