You are here

interface EntityDescriptionInterface in Entity API 8.0

Defines the interface for entities that have a description.

Hierarchy

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\Entity
View 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

Namesort descending Modifiers Type Description Overrides
EntityDescriptionInterface::getDescription public function Gets the entity description. 1
EntityDescriptionInterface::setDescription public function Sets the entity description. 1