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

Breadcrumb

  1. Drupal Core 11.1.x

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.

API Navigation

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