Pecl.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\Component\UuidFile
core/lib/Drupal/Component/Uuid/Pecl.phpView source
<?php
namespace Drupal\Component\Uuid;
/**
* Generates a UUID using the PECL extension.
*/
class Pecl implements UuidInterface {
/**
* {@inheritdoc}
*/
public function generate() {
return uuid_create(UUID_TYPE_DEFAULT);
}
}