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

Breadcrumb

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

function v4

Returns a version 4 (random) UUID

Return value

non-empty-string Version 4 UUID as a string

2 string references to 'v4'
CurlFactory::applyHandlerOptions in vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
StreamHandler::resolveHost in vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php

File

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

Namespace

Ramsey\Uuid

Code

function v4() : string {
    return Uuid::uuid4()->toString();
}

API Navigation

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