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);
Please login to continue.