EntityDescriptionInterface.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\Core\EntityFile
core/lib/Drupal/Core/Entity/EntityDescriptionInterface.phpView source
<?php
namespace Drupal\Core\Entity;
/**
* Defines the interface for entities that have a description.
*/
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);
}
Interfaces
Name | Description |
---|---|
EntityDescriptionInterface | Defines the interface for entities that have a description. |