You are here

public function EntityBase::uuid in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::uuid()
  2. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::uuid()
1 call to EntityBase::uuid()
ConfigEntityBase::preSave in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Acts on an entity before the presave hook is invoked.
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;
}