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();
}
doc_Drupal
2016-10-29 09:22:38
Comments
Leave a Comment

Please login to continue.