3 namespace Drupal\language;
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
8 * Provides an interface defining language settings for content entities.
10 interface ContentLanguageSettingsInterface extends ConfigEntityInterface {
13 * Gets the entity type ID this config applies to.
17 public function getTargetEntityTypeId();
20 * Gets the bundle this config applies to.
24 public function getTargetBundle();
27 * Sets the bundle this config applies to.
29 * @param string $target_bundle
34 public function setTargetBundle($target_bundle);
37 * Sets the default language code.
39 * @param string $default_langcode
40 * The default language code.
44 public function setDefaultLangcode($default_langcode);
47 * Gets the default language code.
51 public function getDefaultLangcode();
54 * Sets if the language must be alterable or not.
56 * @param bool $language_alterable
57 * Flag indicating if the language must be alterable.
61 public function setLanguageAlterable($language_alterable);
64 * Checks if the language is alterable or not.
68 public function isLanguageAlterable();
71 * Checks if this config object contains the default values in every property.
74 * True if all the properties contain the default values. False otherwise.
76 public function isDefaultConfiguration();