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

Breadcrumb

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

function v1

Returns a version 1 (Gregorian time) UUID from a host ID, sequence number, and the current time

Parameters

Hexadecimal|int|string|null $node A 48-bit number representing the: hardware address; this number may be represented as an integer or a hexadecimal string

int|null $clockSeq A 14-bit number used to help avoid duplicates that: could arise when the clock is set backwards in time or if the node ID changes

Return value

non-empty-string Version 1 UUID as a string

File

vendor/ramsey/uuid/src/functions.php, line 35

Namespace

Ramsey\Uuid

Code

function v1($node = null, ?int $clockSeq = null) : string {
    return Uuid::uuid1($node, $clockSeq)->toString();
}

API Navigation

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