Pecl.php

Same filename in other branches
  1. 9 core/lib/Drupal/Component/Uuid/Pecl.php
  2. 8.9.x core/lib/Drupal/Component/Uuid/Pecl.php
  3. 10 core/lib/Drupal/Component/Uuid/Pecl.php

Namespace

Drupal\Component\Uuid

File

core/lib/Drupal/Component/Uuid/Pecl.php

View source
<?php

namespace Drupal\Component\Uuid;


/**
 * Generates a UUID using the PECL extension.
 */
class Pecl implements UuidInterface {
    
    /**
     * {@inheritdoc}
     */
    public function generate() {
        return strtolower(uuid_create(UUID_TYPE_DEFAULT));
    }

}

Classes

Title Deprecated Summary
Pecl Generates a UUID using the PECL extension.

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