public function LanguageManager::getLanguageSwitchLinks in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getLanguageSwitchLinks()
Returns the language switch links for the given language type.
Parameters
string $type: The language type.
\Drupal\Core\Url $url: The URL the switch links will be relative to.
Return value
array A keyed array of links ready to be themed.
Overrides LanguageManagerInterface::getLanguageSwitchLinks
1 method overrides LanguageManager::getLanguageSwitchLinks()
- ConfigurableLanguageManager::getLanguageSwitchLinks in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns the language switch links for the given language type.
File
- core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 222 - Contains \Drupal\Core\Language\LanguageManager.
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
public function getLanguageSwitchLinks($type, Url $url) {
return array();
}