function GenerateVocabsCommand::__invoke
Create vocabularies.
The arguments and options are read from the input by the plugin.
File
-
devel_generate/
src/ Command/ GenerateVocabsCommand.php, line 35
Class
- GenerateVocabsCommand
- Create vocabularies.
Namespace
Drupal\devel_generate\CommandCode
public function __invoke(InputInterface $input, OutputInterface $output, #[Argument('Number of vocabularies to generate.')] string $num = '1', #[Option('Delete all vocabs before generating new ones.')] bool $kill = FALSE) : int {
return $this->generate(self::PLUGIN_ID, $input, $output, [
'taxonomy',
]);
}