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

Breadcrumb

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

function StaticNodeProvider::__construct

Parameters

Hexadecimal $node The static node value to use:

File

vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php, line 40

Class

StaticNodeProvider
StaticNodeProvider provides a static node value with the multicast bit set

Namespace

Ramsey\Uuid\Provider\Node

Code

public function __construct(Hexadecimal $node) {
    if (strlen($node->toString()) > 12) {
        throw new InvalidArgumentException('Static node value cannot be greater than 12 hexadecimal characters');
    }
    $this->node = $this->setMulticastBit($node);
}

API Navigation

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