You are here

public function DevelGenerateCommands::vocabs in Devel 8.3

Same name and namespace in other branches
  1. 8 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::vocabs()
  2. 8.2 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::vocabs()
  3. 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 170

Class

DevelGenerateCommands
Provide Drush commands for all the Devel Generate processes.

Namespace

Drupal\devel_generate\Commands

Code

public function vocabs($num = 1, array $options = [
  'kill' => FALSE,
]) {
  $this
    ->generate();
}