You are here

public function EntityDescriptionInterface::setDescription in Entity API 8.0

Sets the entity description.

Parameters

string $description: The entity description.

Return value

$this

1 method overrides EntityDescriptionInterface::setDescription()
EnhancedEntityBundle::setDescription in tests/modules/entity_module_test/src/Entity/EnhancedEntityBundle.php
Sets the entity description.

File

src/Entity/EntityDescriptionInterface.php, line 31
Contains \Drupal\entity\Entity\EntityDescriptionInterface.

Class

EntityDescriptionInterface
Defines the interface for entities that have a description.

Namespace

Drupal\entity\Entity

Code

public function setDescription($description);