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

Breadcrumb

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

function Uuid::toString

@psalm-return non-empty-string

Overrides UuidInterface::toString

5 calls to Uuid::toString()
Uuid::compareTo in vendor/ramsey/uuid/src/Uuid.php
Returns -1, 0, or 1 if the UUID is less than, equal to, or greater than the other UUID
Uuid::getHex in vendor/ramsey/uuid/src/Uuid.php
Returns the hexadecimal representation of the UUID
Uuid::getUrn in vendor/ramsey/uuid/src/Uuid.php
Returns the string standard representation of the UUID as a URN
Uuid::jsonSerialize in vendor/ramsey/uuid/src/Uuid.php
Converts the UUID to a string for JSON serialization
Uuid::__toString in vendor/ramsey/uuid/src/Uuid.php
@psalm-return non-empty-string

File

vendor/ramsey/uuid/src/Uuid.php, line 398

Class

Uuid
Uuid provides constants and static methods for working with and generating UUIDs

Namespace

Ramsey\Uuid

Code

public function toString() : string {
    return $this->codec
        ->encode($this);
}

API Navigation

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