function EntityBase::uuid

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::uuid()
  2. 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::uuid()
  3. 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::uuid()

Overrides EntityInterface::uuid

5 calls to EntityBase::uuid()
ConfigEntityBase::preSave in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Acts on an entity before the presave hook is invoked.
EntityBase::getConfigDependencyName in core/lib/Drupal/Core/Entity/EntityBase.php
Gets the configuration dependency name.
EntityBase::getConfigTarget in core/lib/Drupal/Core/Entity/EntityBase.php
Gets the configuration target identifier for the entity.
FieldConfig::getUniqueIdentifier in core/modules/field/src/Entity/FieldConfig.php
Returns a unique identifier for the field.
FieldStorageConfig::getUniqueStorageIdentifier in core/modules/field/src/Entity/FieldStorageConfig.php
Returns a unique identifier for the field storage.
1 method overrides EntityBase::uuid()
ContentEntityBase::uuid in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets the entity UUID (Universally Unique Identifier).

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 113

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function uuid() {
    return $this->uuid ?? NULL;
}

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