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

Breadcrumb

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

class Pecl

Generates a UUID using the PECL extension.

Hierarchy

  • class \Drupal\Component\Uuid\Pecl implements \Drupal\Component\Uuid\UuidInterface

Expanded class hierarchy of Pecl

File

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

Namespace

Drupal\Component\Uuid
View source
class Pecl implements UuidInterface {
    
    /**
     * {@inheritdoc}
     */
    public function generate() {
        return strtolower(uuid_create(UUID_TYPE_DEFAULT));
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
Pecl::generate public function Generates a Universally Unique IDentifier (UUID). Overrides UuidInterface::generate
RSS feed
Powered by Drupal