You are here

protected function GenerateGroupCommand::configure in Metatag 8

File

src/Command/GenerateGroupCommand.php, line 85

Class

GenerateGroupCommand
Class GenerateGroupCommand.

Namespace

Drupal\metatag\Command

Code

protected function configure() {
  $this
    ->setName('generate:plugin:metatag:group')
    ->setDescription($this
    ->trans('commands.generate.metatag.group.description'))
    ->setHelp($this
    ->trans('commands.generate.metatag.group.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('label', null, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.generate.metatag.group.options.label'))
    ->addOption('description', null, InputOption::VALUE_OPTIONAL, $this
    ->trans('commands.generate.metatag.group.options.description'))
    ->addOption('plugin-id', null, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.generate.metatag.group.options.plugin_id'))
    ->addOption('class-name', null, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.generate.metatag.group.options.class_name'))
    ->addOption('weight', null, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.generate.metatag.group.options.weight'));
}