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

Breadcrumb

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

function FieldsInterface::getVersion

Returns the version

The version number describes how the UUID was generated and has the following meaning:

1. Gregorian time UUID 2. DCE security UUID 3. Name-based UUID hashed with MD5 4. Randomly generated UUID 5. Name-based UUID hashed with SHA-1 6. Reordered time UUID 7. Unix Epoch time UUID

This returns `null` if the UUID is not an RFC 4122 variant, since version is only meaningful for this variant.

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

1 method overrides FieldsInterface::getVersion()
Fields::getVersion in vendor/ramsey/uuid/src/Nonstandard/Fields.php
Returns the version

File

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

Class

FieldsInterface
RFC 4122 defines fields for a specific variant of UUID

Namespace

Ramsey\Uuid\Rfc4122

Code

public function getVersion() : ?int;

API Navigation

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