interface EntityDescriptionInterface
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface
- 10 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface
- 8.9.x 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 extends \Drupal\Core\Cache\CacheableDependencyInterface
- interface \Drupal\Core\Entity\EntityInterface extends \Drupal\Core\Access\AccessibleInterface, \Drupal\Core\Cache\CacheableDependencyInterface, \Drupal\Core\Cache\RefinableCacheableDependencyInterface
- interface \Drupal\Core\Entity\EntityDescriptionInterface extends \Drupal\Core\Entity\EntityInterface
- interface \Drupal\Core\Entity\EntityInterface extends \Drupal\Core\Access\AccessibleInterface, \Drupal\Core\Cache\CacheableDependencyInterface, \Drupal\Core\Cache\RefinableCacheableDependencyInterface
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.