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

Breadcrumb

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

function NilTrait::isNil

Returns true if the byte string represents a nil UUID

6 calls to NilTrait::isNil()
Fields::getClockSeq in vendor/ramsey/uuid/src/Guid/Fields.php
Returns the full 16-bit clock sequence, with the variant bits (two most significant bits) masked out
Fields::getClockSeq in vendor/ramsey/uuid/src/Rfc4122/Fields.php
Returns the full 16-bit clock sequence, with the variant bits (two most significant bits) masked out
Fields::getVersion in vendor/ramsey/uuid/src/Guid/Fields.php
Returns the version
Fields::getVersion in vendor/ramsey/uuid/src/Rfc4122/Fields.php
Returns the version
Fields::isCorrectVariant in vendor/ramsey/uuid/src/Guid/Fields.php

... See full list

File

vendor/ramsey/uuid/src/Rfc4122/NilTrait.php, line 37

Class

NilTrait
Provides common functionality for nil UUIDs

Namespace

Ramsey\Uuid\Rfc4122

Code

public function isNil() : bool {
    return $this->getBytes() === "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
}

API Navigation

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