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