You are here

public function EntityDescriptionInterface::setDescription in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface::setDescription()

Sets the entity description.

Parameters

string $description: The entity description.

Return value

$this

3 methods override EntityDescriptionInterface::setDescription()
EntityTestBundle::setDescription in core/modules/system/tests/modules/entity_test/src/Entity/EntityTestBundle.php
Sets the entity description.
EntityTestMulBundle::setDescription in core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulBundle.php
Sets the entity description.
MediaType::setDescription in core/modules/media/src/Entity/MediaType.php
Sets the entity description.

File

core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php, line 26

Class

EntityDescriptionInterface
Defines the interface for entities that have a description.

Namespace

Drupal\Core\Entity

Code

public function setDescription($description);