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

Breadcrumb

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

function FeatureSet::buildNameGenerator

Returns a name generator configured for this environment

1 call to FeatureSet::buildNameGenerator()
FeatureSet::__construct in vendor/ramsey/uuid/src/FeatureSet.php

File

vendor/ramsey/uuid/src/FeatureSet.php, line 350

Class

FeatureSet
FeatureSet detects and exposes available features in the current environment

Namespace

Ramsey\Uuid

Code

private function buildNameGenerator() : NameGeneratorInterface {
    if ($this->enablePecl) {
        return new PeclUuidNameGenerator();
    }
    return (new NameGeneratorFactory())->getGenerator();
}

API Navigation

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