You are here

public function DevelCommands::uuid in Devel 8.2

Same name and namespace in other branches
  1. 8.3 src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::uuid()
  2. 8 src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::uuid()
  3. 4.x src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::uuid()

Generate a UUID.

@command devel:uuid @aliases uuid,devel-uuid @usage drush devel-uuid Outputs a Universally Unique Identifier.

Return value

string

File

src/Commands/DevelCommands.php, line 202

Class

DevelCommands
For commands that are parts of modules, Drush expects to find commandfiles in __MODULE__/src/Commands, and the namespace is Drupal/__MODULE__/Commands.

Namespace

Drupal\devel\Commands

Code

public function uuid() {
  $uuid = new Php();
  return $uuid
    ->generate();
}