EntityDescriptionInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php
  3. 10 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php

Namespace

Drupal\Core\Entity

File

core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php

View 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

Title Deprecated Summary
EntityDescriptionInterface Defines the interface for entities that have a description.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.