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

Breadcrumb

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

function UuidFactory::uuid2

Overrides UuidFactoryInterface::uuid2

File

vendor/ramsey/uuid/src/UuidFactory.php, line 333

Class

UuidFactory

Namespace

Ramsey\Uuid

Code

public function uuid2(int $localDomain, ?IntegerObject $localIdentifier = null, ?Hexadecimal $node = null, ?int $clockSeq = null) : UuidInterface {
    $bytes = $this->dceSecurityGenerator
        ->generate($localDomain, $localIdentifier, $node, $clockSeq);
    return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_DCE_SECURITY);
}

API Navigation

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