public function Item::setDescription in Drupal 9
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Entity/Item.php \Drupal\aggregator\Entity\Item::setDescription()
Sets the body of the feed item.
Parameters
string $description: The body of the feed item.
Return value
$this The called feed item entity.
Overrides ItemInterface::setDescription
File
- core/
modules/ aggregator/ src/ Entity/ Item.php, line 188
Class
- Item
- Defines the aggregator item entity class.
Namespace
Drupal\aggregator\EntityCode
public function setDescription($description) {
return $this
->set('description', $description);
}