You are here

public function Entity::uuid in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::uuid()

Gets the entity UUID (Universally Unique Identifier).

The UUID is guaranteed to be unique and can be used to identify an entity across multiple systems.

Return value

string|null The UUID of the entity, or NULL if the entity does not have one.

Overrides EntityInterface::uuid

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

File

core/lib/Drupal/Core/Entity/Entity.php, line 123
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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