EntityDescriptionInterface.php 501 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Drupal\Core\Entity;
  3. /**
  4. * Defines the interface for entities that have a description.
  5. */
  6. interface EntityDescriptionInterface extends EntityInterface {
  7. /**
  8. * Gets the entity description.
  9. *
  10. * @return string
  11. * The entity description.
  12. */
  13. public function getDescription();
  14. /**
  15. * Sets the entity description.
  16. *
  17. * @param string $description
  18. * The entity description.
  19. *
  20. * @return $this
  21. */
  22. public function setDescription($description);
  23. }