Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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.
RSS feed
Powered by Drupal