8.3.x Vocabulary.php public Vocabulary::id()
8.0.x Vocabulary.php public Vocabulary::id()
8.1.x Vocabulary.php public Vocabulary::id()
8.2.x Vocabulary.php public Vocabulary::id()
8.4.x Vocabulary.php public Vocabulary::id()

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides Entity::id

File

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

Class

Vocabulary
Defines the taxonomy vocabulary entity.

Namespace

Drupal\taxonomy\Entity

Code

public function id() {
  return $this->vid;
}