public function LanguageSwitcherInterface::getLanguageSwitchLinks in Drupal 8
Same name and namespace in other branches
- 9 core/modules/language/src/LanguageSwitcherInterface.php \Drupal\language\LanguageSwitcherInterface::getLanguageSwitchLinks()
- 10 core/modules/language/src/LanguageSwitcherInterface.php \Drupal\language\LanguageSwitcherInterface::getLanguageSwitchLinks()
Returns language switch links.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The current request.
string $type: The language type.
\Drupal\Core\Url $url: The URL the switch links will be relative to.
Return value
array An array of link arrays keyed by language code.
3 methods override LanguageSwitcherInterface::getLanguageSwitchLinks()
- LanguageNegotiationContentEntity::getLanguageSwitchLinks in core/
modules/ language/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationContentEntity.php - Returns language switch links.
- LanguageNegotiationSession::getLanguageSwitchLinks in core/
modules/ language/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationSession.php - Returns language switch links.
- LanguageNegotiationUrl::getLanguageSwitchLinks in core/
modules/ language/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationUrl.php - Returns language switch links.
File
- core/
modules/ language/ src/ LanguageSwitcherInterface.php, line 26
Class
- LanguageSwitcherInterface
- Interface for language switcher classes.
Namespace
Drupal\languageCode
public function getLanguageSwitchLinks(Request $request, $type, Url $url);