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

Breadcrumb

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

function FeatureSet::buildUuidBuilder

Returns a UUID builder configured for this environment

Parameters

bool $useGuids Whether to build UUIDs using the GuidStringCodec:

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

File

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

Class

FeatureSet
FeatureSet detects and exposes available features in the current environment

Namespace

Ramsey\Uuid

Code

private function buildUuidBuilder(bool $useGuids = false) : UuidBuilderInterface {
    if ($useGuids) {
        return new GuidBuilder($this->numberConverter, $this->timeConverter);
    }
    return new FallbackBuilder([
        new Rfc4122UuidBuilder($this->numberConverter, $this->timeConverter),
        new NonstandardUuidBuilder($this->numberConverter, $this->timeConverter),
    ]);
}

API Navigation

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