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

Breadcrumb

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

function CodecInterface::encode

Returns a hexadecimal string representation of a UuidInterface

@psalm-return non-empty-string

Parameters

UuidInterface $uuid The UUID for which to create a hexadecimal: string representation

Return value

string Hexadecimal string representation of a UUID

1 method overrides CodecInterface::encode()
StringCodec::encode in vendor/ramsey/uuid/src/Codec/StringCodec.php
Returns a hexadecimal string representation of a UuidInterface

File

vendor/ramsey/uuid/src/Codec/CodecInterface.php, line 36

Class

CodecInterface
A codec encodes and decodes a UUID according to defined rules

Namespace

Ramsey\Uuid\Codec

Code

public function encode(UuidInterface $uuid) : string;

API Navigation

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