function 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\CommandCode
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.