function language_test_language_switch_links_alter
Same name in other branches
- 9 core/modules/language/tests/language_test/language_test.module \language_test_language_switch_links_alter()
- 8.9.x core/modules/language/tests/language_test/language_test.module \language_test_language_switch_links_alter()
- 10 core/modules/language/tests/language_test/language_test.module \language_test_language_switch_links_alter()
Implements hook_language_switch_links_alter().
File
-
core/
modules/ language/ tests/ language_test/ language_test.module, line 109
Code
function language_test_language_switch_links_alter(array &$links, $type, Url $url) {
// Record which languages had links passed in.
\Drupal::state()->set('language_test.language_switch_link_ids', array_keys($links));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.