You are here

public function LanguageSwitcherInterface::getLanguageSwitchLinks in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/src/LanguageSwitcherInterface.php \Drupal\language\LanguageSwitcherInterface::getLanguageSwitchLinks()
  2. 9 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.

File

core/modules/language/src/LanguageSwitcherInterface.php, line 26

Class

LanguageSwitcherInterface
Interface for language switcher classes.

Namespace

Drupal\language

Code

public function getLanguageSwitchLinks(Request $request, $type, Url $url);