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

Breadcrumb

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

function v3

Returns a version 3 (name-based) UUID based on the MD5 hash of a namespace ID and a name

@psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, but under constant factory setups, this method operates in functionally pure manners

Parameters

string|UuidInterface $ns The namespace (must be a valid UUID):

Return value

non-empty-string Version 3 UUID as a string

File

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

Namespace

Ramsey\Uuid

Code

function v3($ns, string $name) : string {
    return Uuid::uuid3($ns, $name)->toString();
}

API Navigation

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