Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / language / src / LanguageSwitcherInterface.php
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 }