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

Breadcrumb

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

function UuidFactory::setRandomGenerator

Sets the random generator to use for this factory

Parameters

RandomGeneratorInterface $generator A generator to generate binary: data, based on some random input

File

vendor/ramsey/uuid/src/UuidFactory.php, line 202

Class

UuidFactory

Namespace

Ramsey\Uuid

Code

public function setRandomGenerator(RandomGeneratorInterface $generator) : void {
    $this->isDefaultFeatureSet = false;
    $this->randomGenerator = $generator;
}

API Navigation

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