Defines a language.
Name | Modifiers | Type | Description |
---|---|---|---|
LanguageInterface::DIRECTION_LTR | constant | Language written left to right. Possible value of $language->direction. | |
LanguageInterface::DIRECTION_RTL | constant | Language written right to left. Possible value of $language->direction. | |
LanguageInterface::getDirection | public | function | Gets the text direction (left-to-right or right-to-left). |
LanguageInterface::getId | public | function | Gets the ID (language code). |
LanguageInterface::getName | public | function | Gets the name of the language. |
LanguageInterface::getWeight | public | function | Gets the weight of the language. |
LanguageInterface::isDefault | public | function | Returns whether this language is the default language. |
LanguageInterface::isLocked | public | function | Returns whether this language is locked. |
LanguageInterface::LANGCODE_DEFAULT | constant | Language code referring to the default language of data, e.g. of an entity. | |
LanguageInterface::LANGCODE_NOT_APPLICABLE | constant | The language code used when the marked object has no linguistic content. | |
LanguageInterface::LANGCODE_NOT_SPECIFIED | constant | The language code used when no language is explicitly assigned (yet). | |
LanguageInterface::LANGCODE_SITE_DEFAULT | constant | Language code referring to site's default language. | |
LanguageInterface::LANGCODE_SYSTEM | constant | Special system language code (only applicable to UI language). | |
LanguageInterface::STATE_ALL | constant | The language state used when referring to all languages. | |
LanguageInterface::STATE_CONFIGURABLE | constant | The language state when referring to configurable languages. | |
LanguageInterface::STATE_LOCKED | constant | The language state when referring to locked languages. | |
LanguageInterface::STATE_SITE_DEFAULT | constant | The language state used when referring to the site's default language. | |
LanguageInterface::TYPE_CONTENT | constant | The type of language used to define the content language. | |
LanguageInterface::TYPE_INTERFACE | constant | The type of language used to select the user interface. | |
LanguageInterface::TYPE_URL | constant | The type of language used for URLs. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Language!LanguageInterface.php/interface/LanguageInterface/8.1.x