LanguageInterface

Defines a language.

Hierarchy

File

core/lib/Drupal/Core/Language/LanguageInterface.php, line 8

Namespace

Drupal\Core\Language

Members

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.
doc_Drupal
2016-10-29 09:22:28
Comments
Leave a Comment

Please login to continue.