function language_test_language_negotiation_info_alter

Same name in other branches
  1. 9 core/modules/language/tests/language_test/language_test.module \language_test_language_negotiation_info_alter()
  2. 10 core/modules/language/tests/language_test/language_test.module \language_test_language_negotiation_info_alter()
  3. 11.x core/modules/language/tests/language_test/language_test.module \language_test_language_negotiation_info_alter()

Implements hook_language_negotiation_info_alter().

File

core/modules/language/tests/language_test/language_test.module, line 61

Code

function language_test_language_negotiation_info_alter(array &$negotiation_info) {
    if (\Drupal::state()->get('language_test.language_negotiation_info_alter')) {
        unset($negotiation_info[LanguageNegotiationUI::METHOD_ID]);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.