Generates a Universally Unique IDentifier (UUID).
Return value
A 32 byte integer represented as a hex string formatted with 4 hypens.
File
- drupal/core/lib/Drupal/Component/Uuid/UuidInterface.php, line 21
- Definition of Drupal\Component\Uuid\UuidInterface.
Class
- UuidInterface
- Interface that defines a UUID backend.
Namespace
Drupal\Component\Uuid
Code
public function generate();