You are here

public function LanguageManager::getLanguageSwitchLinks in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::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.

Overrides LanguageManagerInterface::getLanguageSwitchLinks

1 method overrides LanguageManager::getLanguageSwitchLinks()
ConfigurableLanguageManager::getLanguageSwitchLinks in core/modules/language/src/ConfigurableLanguageManager.php
Returns the language switch links for the given language type.

File

core/lib/Drupal/Core/Language/LanguageManager.php, line 217

Class

LanguageManager
Class responsible for providing language support on language-unaware sites.

Namespace

Drupal\Core\Language

Code

public function getLanguageSwitchLinks($type, Url $url) {
  return [];
}