interface UuidInterface

Same name in other branches
  1. 9 core/lib/Drupal/Component/Uuid/UuidInterface.php \Drupal\Component\Uuid\UuidInterface
  2. 8.9.x core/lib/Drupal/Component/Uuid/UuidInterface.php \Drupal\Component\Uuid\UuidInterface
  3. 10 core/lib/Drupal/Component/Uuid/UuidInterface.php \Drupal\Component\Uuid\UuidInterface

Interface for generating UUIDs.

Hierarchy

Expanded class hierarchy of UuidInterface

All classes that implement UuidInterface

12 files declare their use of UuidInterface
BaseFieldOverrideStorage.php in core/lib/Drupal/Core/Field/BaseFieldOverrideStorage.php
ConfigEntityStorage.php in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
ConfigEntityStorageTest.php in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php
ConfigureBlockFormBase.php in core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php
EntityFormDisplayAccessControlHandlerTest.php in core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php

... See full list

File

core/lib/Drupal/Component/Uuid/UuidInterface.php, line 8

Namespace

Drupal\Component\Uuid
View source
interface UuidInterface {
    
    /**
     * Generates a Universally Unique IDentifier (UUID).
     *
     * @return string
     *   A 16 byte integer represented as a hex string formatted with 4 hyphens.
     */
    public function generate();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
UuidInterface::generate public function Generates a Universally Unique IDentifier (UUID). 3

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