protected function LanguageSwitcherLinkProcessor::showLanguageCode in Language Switcher Extended 8
Shows the langcode instead of language names.
Parameters
array $links: Language switcher links to be processed.
1 call to LanguageSwitcherLinkProcessor::showLanguageCode()
- LanguageSwitcherLinkProcessor::process in src/
LanguageSwitcherLinkProcessor.php - Processes the language switcher links.
File
- src/
LanguageSwitcherLinkProcessor.php, line 101
Class
- LanguageSwitcherLinkProcessor
- Processes the Language Switcher links.
Namespace
Drupal\language_switcher_extendedCode
protected function showLanguageCode(array &$links) {
foreach ($links as $langcode => $link) {
$links[$langcode]['title'] = $langcode;
}
}