8.3.x Entity.php protected Entity::uuidGenerator()
8.0.x Entity.php protected Entity::uuidGenerator()
8.1.x Entity.php protected Entity::uuidGenerator()
8.2.x Entity.php protected Entity::uuidGenerator()
8.4.x Entity.php protected Entity::uuidGenerator()

Gets the UUID generator.

Return value

\Drupal\Component\Uuid\UuidInterface

3 calls to Entity::uuidGenerator()
ContentEntityBase::createDuplicate in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Creates a duplicate of the entity.
Entity::createDuplicate in core/lib/Drupal/Core/Entity/Entity.php
Creates a duplicate of the entity.
ImageStyle::addImageEffect in core/modules/image/src/Entity/ImageStyle.php
Saves an image effect for this style.

File

core/lib/Drupal/Core/Entity/Entity.php, line 104

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

protected function uuidGenerator() {
  return \Drupal::service('uuid');
}