Same name and namespace in other branches
  1. 8.9.x core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::getDescription()
  2. 9 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::getDescription()

Gets the description.

Return value

string The description of this node type.

Overrides NodeTypeInterface::getDescription

File

core/modules/node/src/Entity/NodeType.php, line 173

Class

NodeType
Defines the Node type configuration entity.

Namespace

Drupal\node\Entity

Code

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