public function LanguageApi::switchLinks in Little helpers 7
Same name and namespace in other branches
- 7.2 src/Locale/LanguageApi.php \Drupal\little_helpers\Locale\LanguageApi::switchLinks()
1 call to LanguageApi::switchLinks()
- LanguageApi::languageLinks in src/
Locale/ LanguageApi.php - Give paths to all (or a subset) of the available translations.
File
- src/
Locale/ LanguageApi.php, line 15
Class
Namespace
Drupal\little_helpers\LocaleCode
public function switchLinks($path) {
$links = \language_negotiation_get_switch_links('language', $path);
return $links ? $links->links : NULL;
}