class DevelUuidCommand
Attributes
#[AsCommand(name: self::NAME, description: 'Generate a Universally Unique Identifier (UUID).', aliases: [
'uuid',
'devel-uuid',
])]
Hierarchy
- class \Drupal\devel\Drush\Commands\DevelUuidCommand extends \Symfony\Component\Console\Command\Command
Expanded class hierarchy of DevelUuidCommand
File
-
src/
Drush/ Commands/ DevelUuidCommand.php, line 13
Namespace
Drupal\devel\Drush\CommandsView source
final class DevelUuidCommand extends Command {
public const NAME = 'devel:uuid';
protected function execute(InputInterface $input, OutputInterface $output) : int {
$uuid = new Php();
$output->writeln($uuid->generate());
return Command::SUCCESS;
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| DevelUuidCommand::execute | protected | function | |
| DevelUuidCommand::NAME | public | constant |