ConfigurableLanguage::postSave

public ConfigurableLanguage::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage ob

ConfigurableLanguage::postDelete

public static ConfigurableLanguage::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::postDelete File core/modules/language/src/Entity/ConfigurableLanguage.php, line 163 C

ConfigurableLanguage::isLocked

public ConfigurableLanguage::isLocked() Returns whether this language is locked. Return value bool Whether the language is locked or not. Overrides LanguageInterface::isLocked File core/modules/language/src/Entity/ConfigurableLanguage.php, line 102 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code public function isLocked() { return (bool) $this->locked; }

ConfigurableLanguage::isDefault

public ConfigurableLanguage::isDefault() Returns whether this language is the default language. Return value bool Whether the language is the default language. Overrides LanguageInterface::isDefault File core/modules/language/src/Entity/ConfigurableLanguage.php, line 95 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code public function isDefault() { return static::getDefaultLangcode() == $this->id(); }

ConfigurableLanguage::getWeight

public ConfigurableLanguage::getWeight() Gets the weight of the language. Return value int The weight, used to order languages with larger positive weights sinking items toward the bottom of lists. Overrides LanguageInterface::getWeight File core/modules/language/src/Entity/ConfigurableLanguage.php, line 222 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code public function getWeight() { return $this->weight; }

ConfigurableLanguage::getName

public ConfigurableLanguage::getName() Gets the name of the language. Return value string The human-readable name of the language (in the language that was used to construct this object). Overrides LanguageInterface::getName File core/modules/language/src/Entity/ConfigurableLanguage.php, line 192 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code public function getName() { return $this->label(); }

ConfigurableLanguage::getId

public ConfigurableLanguage::getId() Gets the ID (language code). Return value string The language code. Overrides LanguageInterface::getId File core/modules/language/src/Entity/ConfigurableLanguage.php, line 208 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code public function getId() { return $this->id(); }

ConfigurableLanguage::getDirection

public ConfigurableLanguage::getDirection() Gets the text direction (left-to-right or right-to-left). Return value string Either self::DIRECTION_LTR or self::DIRECTION_RTL. Overrides LanguageInterface::getDirection File core/modules/language/src/Entity/ConfigurableLanguage.php, line 215 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code public function getDirection() { return $this->direction; }

ConfigurableLanguage::getDefaultLangcode

protected static ConfigurableLanguage::getDefaultLangcode() Gets the default langcode. Return value string The current default langcode. File core/modules/language/src/Entity/ConfigurableLanguage.php, line 184 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code protected static function getDefaultLangcode() { $language = \Drupal::service('language.default')->get(); return $language->getId(); }

ConfigurableLanguage::createFromLangcode

public static ConfigurableLanguage::createFromLangcode($langcode) Creates a configurable language object from a langcode. Parameters string $langcode: The language code to use to create the object. Return value $this See also \Drupal\Core\Language\LanguageManager::getStandardLanguageList() File core/modules/language/src/Entity/ConfigurableLanguage.php, line 244 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code public static fun