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

Breadcrumb

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

function UuidFactoryInterface::uuid5

Returns a version 5 (name-based) UUID based on the SHA-1 hash of a namespace ID and a name

@psalm-pure

Parameters

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

string $name The name to use for creating a UUID:

Return value

UuidInterface A UuidInterface instance that represents a version 5 UUID

1 method overrides UuidFactoryInterface::uuid5()
UuidFactory::uuid5 in vendor/ramsey/uuid/src/UuidFactory.php
@inheritDoc @psalm-pure

File

vendor/ramsey/uuid/src/UuidFactoryInterface.php, line 166

Class

UuidFactoryInterface
UuidFactoryInterface defines common functionality all `UuidFactory` instances must implement

Namespace

Ramsey\Uuid

Code

public function uuid5($ns, string $name) : UuidInterface;

API Navigation

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