function EntityDescriptionInterface::setDescription

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface::setDescription()
  2. 10 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface::setDescription()
  3. 11.x 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);

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