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

Breadcrumb

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

function UuidInterface::equals

Returns true if the UUID is equal to the provided object

The result is true if and only if the argument is not null, is a UUID object, has the same variant, and contains the same value, bit for bit, as the UUID.

Parameters

object|null $other An object to test for equality with this UUID:

Return value

bool True if the other object is equal to this UUID

2 methods override UuidInterface::equals()
LazyUuidFromString::equals in vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php
Returns true if the UUID is equal to the provided object
Uuid::equals in vendor/ramsey/uuid/src/Uuid.php
Returns true if the UUID is equal to the provided object

File

vendor/ramsey/uuid/src/UuidInterface.php, line 64

Class

UuidInterface
A UUID is a universally unique identifier adhering to an agreed-upon representation format and standard for generation

Namespace

Ramsey\Uuid

Code

public function equals(?object $other) : bool;

API Navigation

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