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

Breadcrumb

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

function UuidFactory::__construct

Parameters

FeatureSet|null $features A set of available features in the current environment:

File

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

Class

UuidFactory

Namespace

Ramsey\Uuid

Code

public function __construct(?FeatureSet $features = null) {
    $this->isDefaultFeatureSet = $features === null;
    $features = $features ?: new FeatureSet();
    $this->codec = $features->getCodec();
    $this->dceSecurityGenerator = $features->getDceSecurityGenerator();
    $this->nameGenerator = $features->getNameGenerator();
    $this->nodeProvider = $features->getNodeProvider();
    $this->numberConverter = $features->getNumberConverter();
    $this->randomGenerator = $features->getRandomGenerator();
    $this->timeConverter = $features->getTimeConverter();
    $this->timeGenerator = $features->getTimeGenerator();
    $this->uuidBuilder = $features->getBuilder();
    $this->validator = $features->getValidator();
    $this->unixTimeGenerator = $features->getUnixTimeGenerator();
}

API Navigation

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