You are here

interface EntityDescriptionInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface
  2. 9 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface

Defines the interface for entities that have a description.

Hierarchy

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

}

Members