function BlockContentType::setDescription

Same name and namespace in other branches
  1. main core/modules/block_content/src/Entity/BlockContentType.php \Drupal\block_content\Entity\BlockContentType::setDescription()

Sets the entity description.

Parameters

string $description: The entity description.

Return value

$this

Overrides EntityDescriptionInterface::setDescription

File

core/modules/block_content/src/Entity/BlockContentType.php, line 104

Class

BlockContentType
Defines the block type entity.

Namespace

Drupal\block_content\Entity

Code

public function setDescription($description) : static {
  return $this->set('description', $description);
}

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