Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Component/Uuid/UuidInterface.php \Drupal\Component\Uuid\UuidInterface::generate()
  2. 9 core/lib/Drupal/Component/Uuid/UuidInterface.php \Drupal\Component\Uuid\UuidInterface::generate()

Generates a Universally Unique IDentifier (UUID).

Return value

string A 16 byte integer represented as a hex string formatted with 4 hyphens.

File

core/lib/Drupal/Component/Uuid/UuidInterface.php, line 16

Class

UuidInterface
Interface for generating UUIDs.

Namespace

Drupal\Component\Uuid

Code

public function generate();