Mercurial > hg > isophonics-drupal-site
annotate core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | af1871eacc83 |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\Core\Entity; |
Chris@0 | 4 |
Chris@0 | 5 /** |
Chris@0 | 6 * Defines the interface for entities that have a description. |
Chris@0 | 7 */ |
Chris@18 | 8 interface EntityDescriptionInterface extends EntityInterface { |
Chris@0 | 9 |
Chris@0 | 10 /** |
Chris@0 | 11 * Gets the entity description. |
Chris@0 | 12 * |
Chris@0 | 13 * @return string |
Chris@0 | 14 * The entity description. |
Chris@0 | 15 */ |
Chris@0 | 16 public function getDescription(); |
Chris@0 | 17 |
Chris@0 | 18 /** |
Chris@0 | 19 * Sets the entity description. |
Chris@0 | 20 * |
Chris@0 | 21 * @param string $description |
Chris@0 | 22 * The entity description. |
Chris@0 | 23 * |
Chris@0 | 24 * @return $this |
Chris@0 | 25 */ |
Chris@0 | 26 public function setDescription($description); |
Chris@0 | 27 |
Chris@0 | 28 } |