Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UuidInterface.php

function UuidInterface::generate

Generates a Universally Unique IDentifier (UUID).

Return value

string A 16 byte integer represented as a hex string formatted with 4 hyphens.

3 methods override UuidInterface::generate()
Com::generate in core/lib/Drupal/Component/Uuid/Com.php
Generates a Universally Unique IDentifier (UUID).
Pecl::generate in core/lib/Drupal/Component/Uuid/Pecl.php
Generates a Universally Unique IDentifier (UUID).
Php::generate in core/lib/Drupal/Component/Uuid/Php.php
Generates a Universally Unique IDentifier (UUID).

File

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

Class

UuidInterface
Interface for generating UUIDs.

Namespace

Drupal\Component\Uuid

Code

public function generate();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal