Pull merge.
[yaffs-website] / web / core / modules / language / src / ContentLanguageSettingsInterface.php
1 <?php
2
3 namespace Drupal\language;
4
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
6
7 /**
8  * Provides an interface defining language settings for content entities.
9  */
10 interface ContentLanguageSettingsInterface extends ConfigEntityInterface {
11
12   /**
13    * Gets the entity type ID this config applies to.
14    *
15    * @return string
16    */
17   public function getTargetEntityTypeId();
18
19   /**
20    * Gets the bundle this config applies to.
21    *
22    * @return string
23    */
24   public function getTargetBundle();
25
26   /**
27    * Sets the bundle this config applies to.
28    *
29    * @param string $target_bundle
30    *   The bundle.
31    *
32    * @return $this
33    */
34   public function setTargetBundle($target_bundle);
35
36   /**
37    * Sets the default language code.
38    *
39    * @param string $default_langcode
40    *   The default language code.
41    *
42    * @return $this
43    */
44   public function setDefaultLangcode($default_langcode);
45
46   /**
47    * Gets the default language code.
48    *
49    * @return string
50    */
51   public function getDefaultLangcode();
52
53   /**
54    * Sets if the language must be alterable or not.
55    *
56    * @param bool $language_alterable
57    *   Flag indicating if the language must be alterable.
58    *
59    * @return $this
60    */
61   public function setLanguageAlterable($language_alterable);
62
63   /**
64    * Checks if the language is alterable or not.
65    *
66    * @return bool
67    */
68   public function isLanguageAlterable();
69
70   /**
71    * Checks if this config object contains the default values in every property.
72    *
73    * @return bool
74    *   True if all the properties contain the default values. False otherwise.
75    */
76   public function isDefaultConfiguration();
77
78 }