function LanguageManagerInterface::getLanguageSwitchLinks
Same name in other branches
- 9 core/lib/Drupal/Core/Language/LanguageManagerInterface.php \Drupal\Core\Language\LanguageManagerInterface::getLanguageSwitchLinks()
- 10 core/lib/Drupal/Core/Language/LanguageManagerInterface.php \Drupal\Core\Language\LanguageManagerInterface::getLanguageSwitchLinks()
- 11.x core/lib/Drupal/Core/Language/LanguageManagerInterface.php \Drupal\Core\Language\LanguageManagerInterface::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.
1 method overrides LanguageManagerInterface::getLanguageSwitchLinks()
- LanguageManager::getLanguageSwitchLinks in core/
lib/ Drupal/ Core/ Language/ LanguageManager.php - Returns the language switch links for the given language type.
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageManagerInterface.php, line 177
Class
- LanguageManagerInterface
- Common interface for the language manager service.
Namespace
Drupal\Core\LanguageCode
public function getLanguageSwitchLinks($type, Url $url);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.