interface ContentLanguageSettingsInterface
Same name and namespace in other branches
- 11.x core/modules/language/src/ContentLanguageSettingsInterface.php \Drupal\language\ContentLanguageSettingsInterface
Provides an interface defining language settings for content entities.
Hierarchy
- interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterface; interface \Drupal\Core\Entity\EntityInterface implements \Drupal\Core\Access\AccessibleInterface, \Drupal\Core\Cache\CacheableDependencyInterface, \Drupal\Core\Cache\RefinableCacheableDependencyInterface; interface \Drupal\Core\Entity\SynchronizableInterface implements \Drupal\Core\Entity\EntityInterface
- interface \Drupal\Core\Config\Entity\ConfigEntityInterface implements \Drupal\Core\Entity\EntityInterface, \Drupal\Core\Config\Entity\ThirdPartySettingsInterface, \Drupal\Core\Entity\SynchronizableInterface
- interface \Drupal\language\ContentLanguageSettingsInterface implements \Drupal\Core\Config\Entity\ConfigEntityInterface
- interface \Drupal\Core\Config\Entity\ConfigEntityInterface implements \Drupal\Core\Entity\EntityInterface, \Drupal\Core\Config\Entity\ThirdPartySettingsInterface, \Drupal\Core\Entity\SynchronizableInterface
Expanded class hierarchy of ContentLanguageSettingsInterface
All classes that implement ContentLanguageSettingsInterface
2 files declare their use of ContentLanguageSettingsInterface
- ContentLanguageSettings.php in core/
modules/ language/ src/ Entity/ ContentLanguageSettings.php - content_translation.module in core/
modules/ content_translation/ content_translation.module - Allows entities to be translated into different languages.
File
-
core/
modules/ language/ src/ ContentLanguageSettingsInterface.php, line 10
Namespace
Drupal\languageView source
interface ContentLanguageSettingsInterface extends ConfigEntityInterface {
/**
* Gets the entity type ID this config applies to.
*
* @return string
*/
public function getTargetEntityTypeId();
/**
* Gets the bundle this config applies to.
*
* @return string
*/
public function getTargetBundle();
/**
* Sets the bundle this config applies to.
*
* @param string $target_bundle
* The bundle.
*
* @return $this
*/
public function setTargetBundle($target_bundle);
/**
* Sets the default language code.
*
* @param string $default_langcode
* The default language code.
*
* @return $this
*/
public function setDefaultLangcode($default_langcode);
/**
* Gets the default language code.
*
* @return string
*/
public function getDefaultLangcode();
/**
* Sets if the language must be alterable or not.
*
* @param bool $language_alterable
* Flag indicating if the language must be alterable.
*
* @return $this
*/
public function setLanguageAlterable($language_alterable);
/**
* Checks if the language is alterable or not.
*
* @return bool
*/
public function isLanguageAlterable();
/**
* Checks if this config object contains the default values in every property.
*
* @return bool
* True if all the properties contain the default values. False otherwise.
*/
public function isDefaultConfiguration();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.