function DevelGenerateCommands::terms
Same name in other branches
- 4.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::terms()
- 5.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::terms()
- 5.x devel_generate/src/Drush/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Drush\Commands\DevelGenerateCommands::terms()
Create terms in specified vocabulary.
@command devel-generate-terms @pluginId term
@option kill Delete all terms before generating new ones. @option feedback An integer representing interval for insertion rate logging. @validate-entity-load taxonomy_vocabulary machine_name @aliases gent
Parameters
$machine_name Vocabulary machine name into which new terms will be inserted.:
$num Number of terms to generate.:
File
-
devel_generate/
src/ Commands/ DevelGenerateCommands.php, line 115
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 terms($machine_name, $num = 50, $options = [
'feedback' => 1000,
]) {
$this->generate();
}