public function UuidInterface::generate in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Uuid/UuidInterface.php \Drupal\Component\Uuid\UuidInterface::generate()
Generates a Universally Unique IDentifier (UUID).
Return value
A 16 byte integer represented as a hex string formatted with 4 hyphens.
3 methods override UuidInterface::generate()
- Com::generate in lib/
Drupal/ Component/ Uuid/ Com.php - Generates a Universally Unique IDentifier (UUID).
- Pecl::generate in lib/
Drupal/ Component/ Uuid/ Pecl.php - Generates a Universally Unique IDentifier (UUID).
- Php::generate in lib/
Drupal/ Component/ Uuid/ Php.php - Generates a Universally Unique IDentifier (UUID).
File
- lib/
Drupal/ Component/ Uuid/ UuidInterface.php, line 21 - Contains \Drupal\Component\Uuid\UuidInterface.
Class
- UuidInterface
- Interface for generating UUIDs.
Namespace
Drupal\Component\UuidCode
public function generate();