comparison core/modules/language/src/LanguageSwitcherInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\language;
4
5 use Drupal\Core\Url;
6 use Symfony\Component\HttpFoundation\Request;
7
8 /**
9 * Interface for language switcher classes.
10 */
11 interface LanguageSwitcherInterface {
12
13 /**
14 * Returns language switch links.
15 *
16 * @param \Symfony\Component\HttpFoundation\Request $request
17 * The current request.
18 * @param string $type
19 * The language type.
20 * @param \Drupal\Core\Url $url
21 * The URL the switch links will be relative to.
22 *
23 * @return array
24 * An array of link arrays keyed by language code.
25 */
26 public function getLanguageSwitchLinks(Request $request, $type, Url $url);
27
28 }