function DevelGenerateCommands::vocabs
Same name in this branch
- 5.x devel_generate/src/Drush/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Drush\Commands\DevelGenerateCommands::vocabs()
Same name in other branches
- 8.x-1.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::vocabs()
- 4.x 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();
}