interface EntityDescriptionInterface in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface
- 9 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface
Defines the interface for entities that have a description.
Hierarchy
- interface \Drupal\Core\Access\AccessibleInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface; interface \Drupal\Core\Cache\RefinableCacheableDependencyInterface
- interface \Drupal\Core\Entity\EntityInterface
- interface \Drupal\Core\Entity\EntityDescriptionInterface
- interface \Drupal\Core\Entity\EntityInterface
Expanded class hierarchy of EntityDescriptionInterface
All classes that implement EntityDescriptionInterface
4 files declare their use of EntityDescriptionInterface
- EntityController.php in core/
lib/ Drupal/ Core/ Entity/ Controller/ EntityController.php - EntityTestBundle.php in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestBundle.php - EntityTestMulBundle.php in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulBundle.php - MediaTypeInterface.php in core/
modules/ media/ src/ MediaTypeInterface.php
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDescriptionInterface.php, line 8
Namespace
Drupal\Core\EntityView source
interface EntityDescriptionInterface extends EntityInterface {
/**
* 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);
}