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

Breadcrumb

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

function PeclUuidTimeGenerator::generate

@inheritDoc

Overrides TimeGeneratorInterface::generate

File

vendor/ramsey/uuid/src/Generator/PeclUuidTimeGenerator.php, line 33

Class

PeclUuidTimeGenerator
PeclUuidTimeGenerator generates strings of binary data for time-base UUIDs, using ext-uuid

Namespace

Ramsey\Uuid\Generator

Code

public function generate($node = null, ?int $clockSeq = null) : string {
    $uuid = uuid_create(UUID_TYPE_TIME);
    return uuid_parse($uuid);
}

API Navigation

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