protected function GenerateTagCommand::configure in Metatag 8
File
- src/
Command/ GenerateTagCommand.php, line 110
Class
- GenerateTagCommand
- Class GenerateTagCommand.
Namespace
Drupal\metatag\CommandCode
protected function configure() {
$this
->setName('generate:plugin:metatag:tag')
->setDescription($this
->trans('commands.generate.metatag.tag.description'))
->setHelp($this
->trans('commands.generate.metatag.tag.help'))
->addOption('base_class', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.common.options.base_class'))
->addOption('module', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.common.options.module'))
->addOption('name', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.name'))
->addOption('label', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.label'))
->addOption('description', null, InputOption::VALUE_OPTIONAL, $this
->trans('commands.generate.metatag.tag.options.description'))
->addOption('plugin-id', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.plugin_id'))
->addOption('class-name', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.class_name'))
->addOption('group', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.group'))
->addOption('weight', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.weight'))
->addOption('type', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.type'))
->addOption('secure', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.secure'))
->addOption('multiple', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.generate.metatag.tag.options.multiple'));
}