function ConsoleExampleConfigureCommand::execute
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/console_test/src/Command/ConsoleExampleConfigureCommand.php \Drupal\console_test\Command\ConsoleExampleConfigureCommand::execute()
File
-
core/
modules/ system/ tests/ modules/ console_test/ src/ Command/ ConsoleExampleConfigureCommand.php, line 30
Class
- ConsoleExampleConfigureCommand
- An example command using configure() instead of the AsCommand attribute.
Namespace
Drupal\console_test\CommandCode
protected function execute(InputInterface $input, OutputInterface $output) : int {
$io = new SymfonyStyle($input, $output);
$io->success('Done with configured command.');
return Command::SUCCESS;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.