annotate core/modules/language/src/ContentLanguageSettingsInterface.php @ 19:fa3358dc1485 tip

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