function ConsoleExampleCommand::configure

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/console_test/src/Command/ConsoleExampleCommand.php \Drupal\console_test\Command\ConsoleExampleCommand::configure()

File

core/modules/system/tests/modules/console_test/src/Command/ConsoleExampleCommand.php, line 43

Class

ConsoleExampleCommand
An example command.

Namespace

Drupal\console_test\Command

Code

protected function configure() : void {
  $this->addArgument('argument-test', mode: InputArgument::OPTIONAL)
    ->addOption('option-test', mode: InputOption::VALUE_NONE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.