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

Breadcrumb

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

function UuidV2::getLocalDomain

Returns the local domain used to create this version 2 UUID

File

vendor/ramsey/uuid/src/Rfc4122/UuidV2.php, line 87

Class

UuidV2
DCE Security version, or version 2, UUIDs include local domain identifier, local ID for the specified domain, and node values that are combined into a 128-bit unsigned integer

Namespace

Ramsey\Uuid\Rfc4122

Code

public function getLocalDomain() : int {
    
    /** @var Rfc4122FieldsInterface $fields */
    $fields = $this->getFields();
    return (int) hexdec($fields->getClockSeqLow()
        ->toString());
}

API Navigation

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