function Pecl::generate

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Uuid/Pecl.php \Drupal\Component\Uuid\Pecl::generate()
  2. 10 core/lib/Drupal/Component/Uuid/Pecl.php \Drupal\Component\Uuid\Pecl::generate()
  3. 11.x core/lib/Drupal/Component/Uuid/Pecl.php \Drupal\Component\Uuid\Pecl::generate()

Overrides UuidInterface::generate

File

core/lib/Drupal/Component/Uuid/Pecl.php, line 13

Class

Pecl
Generates a UUID using the PECL extension.

Namespace

Drupal\Component\Uuid

Code

public function generate() {
    return uuid_create(UUID_TYPE_DEFAULT);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.