EntityDescriptionInterface.php in Entity API 8.0
Namespace
Drupal\entity\EntityFile
src/Entity/EntityDescriptionInterface.phpView source
<?php
/**
* @file
* Contains \Drupal\entity\Entity\EntityDescriptionInterface.
*/
namespace Drupal\entity\Entity;
/**
* Defines the interface for entities that have a description.
*/
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);
}
Interfaces
Name | Description |
---|---|
EntityDescriptionInterface | Defines the interface for entities that have a description. |