interface LanguageSwitcherInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/LanguageSwitcherInterface.php \Drupal\language\LanguageSwitcherInterface
Interface for language switcher classes.
Hierarchy
- interface \Drupal\language\LanguageSwitcherInterface
Expanded class hierarchy of LanguageSwitcherInterface
All classes that implement LanguageSwitcherInterface
3 files declare their use of LanguageSwitcherInterface
- LanguageNegotiationContentEntity.php in core/
modules/ language/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationContentEntity.php - Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationContentEntity.
- LanguageNegotiationSession.php in core/
modules/ language/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationSession.php - Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationSession.
- LanguageNegotiationUrl.php in core/
modules/ language/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationUrl.php - Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl.
File
- core/
modules/ language/ src/ LanguageSwitcherInterface.php, line 16 - Contains \Drupal\language\LanguageSwitcherInterface.
Namespace
Drupal\languageView source
interface LanguageSwitcherInterface {
/**
* Returns language switch links.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The current request.
* @param string $type
* The language type.
* @param \Drupal\Core\Url $url
* The URL the switch links will be relative to.
*
* @return array
* An array of link arrays keyed by language code.
*/
public function getLanguageSwitchLinks(Request $request, $type, Url $url);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LanguageSwitcherInterface:: |
public | function | Returns language switch links. | 3 |