public function EntityDescriptionInterface::setDescription in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityDescriptionInterface.php \Drupal\Core\Entity\EntityDescriptionInterface::setDescription()
- 10 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
2 methods override EntityDescriptionInterface::setDescription()
- EntityTestBundle::setDescription in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestBundle.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\EntityCode
public function setDescription($description);