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

Breadcrumb

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

function DeprecatedUuidMethodsTrait::getLeastSignificantBits

Deprecated

This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by {

See also

UuidInterface::getHex()}.

File

vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php, line 172

Class

DeprecatedUuidMethodsTrait
This trait encapsulates deprecated methods for ramsey/uuid; this trait and its methods will be removed in ramsey/uuid 5.0.0.

Namespace

Ramsey\Uuid

Code

public function getLeastSignificantBits() : string {
    $leastSignificantHex = substr($this->getHex()
        ->toString(), 16);
    return $this->numberConverter
        ->fromHex($leastSignificantHex);
}

API Navigation

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