Mercurial > hg > isophonics-drupal-site
comparison core/modules/language/src/ConfigurableLanguageInterface.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\Config\Entity\ConfigEntityInterface; | |
6 use Drupal\Core\Language\LanguageInterface; | |
7 | |
8 /** | |
9 * Provides an interface defining a language entity. | |
10 */ | |
11 interface ConfigurableLanguageInterface extends ConfigEntityInterface, LanguageInterface { | |
12 | |
13 /** | |
14 * Sets the name of the language. | |
15 * | |
16 * @param string $name | |
17 * The human-readable English name of the language. | |
18 * | |
19 * @return $this | |
20 */ | |
21 public function setName($name); | |
22 | |
23 /** | |
24 * Sets the weight of the language. | |
25 * | |
26 * @param int $weight | |
27 * The weight, used to order languages with larger positive weights sinking | |
28 * items toward the bottom of lists. | |
29 * | |
30 * @return $this | |
31 */ | |
32 public function setWeight($weight); | |
33 | |
34 } |