interface EntityDescriptionInterface in Entity API 8.0
Defines the interface for entities that have a description.
Hierarchy
- interface \Drupal\entity\Entity\EntityDescriptionInterface
Expanded class hierarchy of EntityDescriptionInterface
All classes that implement EntityDescriptionInterface
1 file declares its use of EntityDescriptionInterface
- EnhancedEntityBundle.php in tests/
modules/ entity_module_test/ src/ Entity/ EnhancedEntityBundle.php - Contains \Drupal\entity_module_test\Entity\EnhancedEntityBundle.
File
- src/
Entity/ EntityDescriptionInterface.php, line 13 - Contains \Drupal\entity\Entity\EntityDescriptionInterface.
Namespace
Drupal\entity\EntityView source
interface EntityDescriptionInterface {
/**
* Gets the entity description.
*
* @return string
* The entity description.
*/
public function getDescription();
/**
* Sets the entity description.
*
* @param string $description
* The entity description.
*
* @return $this
*/
public function setDescription($description);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDescriptionInterface:: |
public | function | Gets the entity description. | 1 |
EntityDescriptionInterface:: |
public | function | Sets the entity description. | 1 |