function LanguageManager::getLanguageSwitchLinks

Same name in other branches
  1. 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getLanguageSwitchLinks()
  2. 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getLanguageSwitchLinks()
  3. 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getLanguageSwitchLinks()

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 [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.