You are here

public function LanguageManagerInterface::getLanguageSwitchLinks in Zircon Profile 8

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

1 method overrides LanguageManagerInterface::getLanguageSwitchLinks()
LanguageManager::getLanguageSwitchLinks in core/lib/Drupal/Core/Language/LanguageManager.php
Returns the language switch links for the given language type.

File

core/lib/Drupal/Core/Language/LanguageManagerInterface.php, line 182
Contains \Drupal\Core\Language\LanguageManagerInterface.

Class

LanguageManagerInterface
Common interface for the language manager service.

Namespace

Drupal\Core\Language

Code

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