public function CommandGcuSubscriber::onConfigure in Update helper 8
Get options for "generate:configuration:update" relevant for checklist.
Parameters
\Drupal\update_helper\Events\CommandConfigureEvent $configure_event: Command options event.
File
- modules/
update_helper_checklist/ src/ Events/ CommandGcuSubscriber.php, line 112
Class
- CommandGcuSubscriber
- Subscriber for "generate:configuration:update" command.
Namespace
Drupal\update_helper_checklist\EventsCode
public function onConfigure(CommandConfigureEvent $configure_event) {
$configure_event
->addOption(static::$updateVersionName, NULL, InputOption::VALUE_OPTIONAL, $configure_event
->getCommand()
->trans('commands.generate.configuration.update.checklist.options.update-version'), '');
$configure_event
->addOption(static::$updateDescription, NULL, InputOption::VALUE_REQUIRED, $configure_event
->getCommand()
->trans('commands.generate.configuration.update.checklist.options.update-description'));
$configure_event
->addOption(static::$successMessageName, NULL, InputOption::VALUE_REQUIRED, $configure_event
->getCommand()
->trans('commands.generate.configuration.update.checklist.options.success-message'));
$configure_event
->addOption(static::$failureMessageName, NULL, InputOption::VALUE_REQUIRED, $configure_event
->getCommand()
->trans('commands.generate.configuration.update.checklist.options.failure-message'));
}