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

Returns the vocabulary description.

Return value

string The vocabulary description.

Overrides VocabularyInterface::getDescription

File

core/modules/taxonomy/src/Entity/Vocabulary.php, line 104

Class

Vocabulary
Defines the taxonomy vocabulary entity.

Namespace

Drupal\taxonomy\Entity

Code

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