function DevelGenerateCommands::terms

Same name in this branch
  1. 5.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::terms()
Same name in other branches
  1. 8.x-1.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::terms()
  2. 4.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::terms()

Create terms in specified vocabulary.

File

devel_generate/src/Drush/Commands/DevelGenerateCommands.php, line 136

Class

DevelGenerateCommands
Provide Drush commands for all the core Devel Generate plugins.

Namespace

Drupal\devel_generate\Drush\Commands

Code

public function terms(int $num = 50, array $options = [
    'kill' => FALSE,
    'bundles' => self::REQ,
    'feedback' => '1000',
    'languages' => self::REQ,
    'translations' => self::REQ,
    'min-depth' => '1',
    'max-depth' => '4',
]) : void {
    $this->generate();
}