protected function GenerateTagCommand::execute in Metatag 8
File
- src/
Command/ GenerateTagCommand.php, line 144
Class
- GenerateTagCommand
- Class GenerateTagCommand.
Namespace
Drupal\metatag\CommandCode
protected function execute(InputInterface $input, OutputInterface $output) {
$base_class = $input
->getOption('base_class');
$module = $this
->validateModule($input
->getOption('module'));
$name = $input
->getOption('name');
$label = $input
->getOption('label');
$description = $input
->getOption('description');
$plugin_id = $input
->getOption('plugin-id');
$class_name = $this->validator
->validateClassName($input
->getOption('class-name'));
$group = $input
->getOption('group');
$weight = $input
->getOption('weight');
$type = $input
->getOption('type');
$secure = $input
->getOption('secure');
$multiple = $input
->getOption('multiple');
$this->generator
->generate($base_class, $module, $name, $label, $description, $plugin_id, $class_name, $group, $weight, $type, $secure, $multiple);
$this->chainQueue
->addCommand('cache:rebuild', [
'cache' => 'discovery',
]);
}