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

Breadcrumb

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

function UuidFactory::uuid

Returns a Uuid created from the provided byte string

Uses the configured builder and codec and the provided byte string to construct a Uuid object.

@psalm-pure

Parameters

string $bytes The byte string from which to construct a UUID:

Return value

UuidInterface An instance of UuidInterface, created from the provided bytes

1 call to UuidFactory::uuid()
UuidFactory::uuidFromBytesAndVersion in vendor/ramsey/uuid/src/UuidFactory.php
Returns an RFC 4122 variant Uuid, created from the provided bytes and version

File

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

Class

UuidFactory

Namespace

Ramsey\Uuid

Code

public function uuid(string $bytes) : UuidInterface {
    
    /** @psalm-suppress ImpurePropertyFetch */
    return $this->uuidBuilder
        ->build($this->codec, $bytes);
}

API Navigation

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