interface LanguageSwitcherInterface (View source)

Interface for language switcher classes.

Methods

array
getLanguageSwitchLinks(Request $request, string $type, Url $url)

Returns language switch links.

Details

Returns language switch links.

Parameters

Request $request

The current request.

string $type

The language type.

Url $url

The URL the switch links will be relative to.

Return Value

array

An array of link arrays keyed by language code.