W3cubDocs

/Drupal 8

public function LanguageManager::getLanguageSwitchLinks

public LanguageManager::getLanguageSwitchLinks($type, Url $url)

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

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 array();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Language!LanguageManager.php/function/LanguageManager::getLanguageSwitchLinks/8.1.x