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

Breadcrumb

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

function UuidV2::getLocalIdentifier

Returns the local identifier for the domain used to create this version 2 UUID

File

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

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 getLocalIdentifier() : IntegerObject {
    
    /** @var Rfc4122FieldsInterface $fields */
    $fields = $this->getFields();
    return new IntegerObject($this->numberConverter
        ->fromHex($fields->getTimeLow()
        ->toString()));
}

API Navigation

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