function LanguageTestHooks::languageNegotiationInfoAlter
Implements hook_language_negotiation_info_alter().
File
-
core/
modules/ language/ tests/ language_test/ src/ Hook/ LanguageTestHooks.php, line 73
Class
- LanguageTestHooks
- Hook implementations for language_test.
Namespace
Drupal\language_test\HookCode
public function languageNegotiationInfoAlter(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.