ContentLanguageSettingsInterface.php 1.6 KB

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