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

Breadcrumb

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

function UuidFactory::fromInteger

@psalm-pure

Overrides UuidFactoryInterface::fromInteger

File

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

Class

UuidFactory

Namespace

Ramsey\Uuid

Code

public function fromInteger(string $integer) : UuidInterface {
    $hex = $this->numberConverter
        ->toHex($integer);
    $hex = str_pad($hex, 32, '0', STR_PAD_LEFT);
    return $this->fromString($hex);
}

API Navigation

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