3 namespace Drupal\language;
6 use Symfony\Component\HttpFoundation\Request;
9 * Interface for language switcher classes.
11 interface LanguageSwitcherInterface {
14 * Returns language switch links.
16 * @param \Symfony\Component\HttpFoundation\Request $request
17 * The current request.
20 * @param \Drupal\Core\Url $url
21 * The URL the switch links will be relative to.
24 * An array of link arrays keyed by language code.
26 public function getLanguageSwitchLinks(Request $request, $type, Url $url);