function BlockContentType::getDescription

Same name and namespace in other branches
  1. 11.x core/modules/block_content/src/Entity/BlockContentType.php \Drupal\block_content\Entity\BlockContentType::getDescription()
  2. 10 core/modules/block_content/src/Entity/BlockContentType.php \Drupal\block_content\Entity\BlockContentType::getDescription()
  3. 9 core/modules/block_content/src/Entity/BlockContentType.php \Drupal\block_content\Entity\BlockContentType::getDescription()
  4. 8.9.x core/modules/block_content/src/Entity/BlockContentType.php \Drupal\block_content\Entity\BlockContentType::getDescription()

Gets the entity description.

Return value

string The entity description.

Overrides EntityDescriptionInterface::getDescription

File

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

Class

BlockContentType
Defines the block type entity.

Namespace

Drupal\block_content\Entity

Code

public function getDescription() {
  return $this->description ?? '';
}

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