public function DevelGenerateCommands::vocabs in Devel 4.x
Same name and namespace in other branches
- 8.3 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::vocabs()
- 8 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::vocabs()
- 8.2 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::vocabs()
Create vocabularies.
@command devel-generate:vocabs @aliases genv, devel-generate-vocabs @pluginId vocabulary @validate-module-enabled taxonomy
@option kill Delete all vocabs before generating new ones.
Parameters
int $num: Number of vocabularies to generate.
array $options: Array of options as described below.
File
- devel_generate/
src/ Commands/ DevelGenerateCommands.php, line 177
Class
- DevelGenerateCommands
- Provide Drush commands for all the Devel Generate processes.
Namespace
Drupal\devel_generate\CommandsCode
public function vocabs($num = 1, array $options = [
'kill' => FALSE,
]) {
$this
->generate();
}