public function LanguageManagerInterface::getLanguageSwitchLinks

public LanguageManagerInterface::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.

File

core/lib/Drupal/Core/Language/LanguageManagerInterface.php, line 177

Class

LanguageManagerInterface
Common interface for the language manager service.

Namespace

Drupal\Core\Language

Code

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

© 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!LanguageManagerInterface.php/function/LanguageManagerInterface::getLanguageSwitchLinks/8.1.x