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

Breadcrumb

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

function FieldsInterface::getVariant

Returns the variant

The variant number describes the layout of the UUID. The variant number has the following meaning:

  • 0 - Reserved for NCS backward compatibility
  • 2 - The RFC 4122 variant
  • 6 - Reserved, Microsoft Corporation backward compatibility
  • 7 - Reserved for future definition

For RFC 4122 variant UUIDs, this value should always be the integer `2`.

@link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, ยง 4.1.1: Variant

File

vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php, line 98

Class

FieldsInterface
RFC 4122 defines fields for a specific variant of UUID

Namespace

Ramsey\Uuid\Rfc4122

Code

public function getVariant() : int;

API Navigation

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