You are here

public function LanguageApi::switchLinks in Little helpers 7

Same name and namespace in other branches
  1. 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

LanguageApi

Namespace

Drupal\little_helpers\Locale

Code

public function switchLinks($path) {
  $links = \language_negotiation_get_switch_links('language', $path);
  return $links ? $links->links : NULL;
}