function DevelGenerateCommands::vocabs
Same name in other branches
- 4.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::vocabs()
- 5.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::vocabs()
- 5.x devel_generate/src/Drush/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Drush\Commands\DevelGenerateCommands::vocabs()
Create vocabularies.
@command devel-generate-vocabs @pluginId vocabulary
@option kill Delete all vocabs before generating new ones. @aliases genv @validate-module-enabled taxonomy
Parameters
$num Number of vocabularies to generate.:
File
-
devel_generate/
src/ Commands/ DevelGenerateCommands.php, line 129
Class
- DevelGenerateCommands
- 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_generate\CommandsCode
public function vocabs($num = 1, $options = [
'kill' => FALSE,
]) {
$this->generate();
}