interface ConfigurableLanguageInterface
Same name and namespace in other branches
- 11.x core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface
- 10 core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface
- 8.9.x core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface
Provides an interface defining a language entity.
Hierarchy
- interface \Drupal\Core\Config\Entity\ConfigEntityInterface extends \Drupal\Core\Entity\EntityInterface, \Drupal\Core\Config\Entity\ThirdPartySettingsInterface, \Drupal\Core\Entity\SynchronizableInterface; interface \Drupal\Core\Language\LanguageInterface
- interface \Drupal\language\ConfigurableLanguageInterface extends \Drupal\Core\Config\Entity\ConfigEntityInterface, \Drupal\Core\Language\LanguageInterface
Expanded class hierarchy of ConfigurableLanguageInterface
All classes that implement ConfigurableLanguageInterface
6 files declare their use of ConfigurableLanguageInterface
- block.module in core/
modules/ block/ block.module - Controls the visual building blocks a page is constructed with.
- ConfigurableLanguage.php in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - LanguageTestController.php in core/
modules/ language/ tests/ language_test/ src/ Controller/ LanguageTestController.php - locale.module in core/
modules/ locale/ locale.module - Enables the translation of the user interface to languages other than English.
- MigrateLanguageTest.php in core/
modules/ language/ tests/ src/ Kernel/ Migrate/ d6/ MigrateLanguageTest.php
File
-
core/
modules/ language/ src/ ConfigurableLanguageInterface.php, line 11
Namespace
Drupal\languageView source
interface ConfigurableLanguageInterface extends ConfigEntityInterface, LanguageInterface {
/**
* Sets the name of the language.
*
* @param string $name
* The human-readable English name of the language.
*
* @return $this
*/
public function setName($name);
/**
* Sets the weight of the language.
*
* @param int $weight
* The weight, used to order languages with larger positive weights sinking
* items toward the bottom of lists.
*
* @return $this
*/
public function setWeight($weight);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.