function ConsoleSubExampleCommand::execute

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/console_test/src/Command/Sub/ConsoleSubExampleCommand.php \Drupal\console_test\Command\Sub\ConsoleSubExampleCommand::execute()

File

core/modules/system/tests/modules/console_test/src/Command/Sub/ConsoleSubExampleCommand.php, line 27

Class

ConsoleSubExampleCommand
An example command in a subdirectory.

Namespace

Drupal\console_test\Command\Sub

Code

protected function execute(InputInterface $input, OutputInterface $output) : int {
  $io = new SymfonyStyle($input, $output);
  $io->success('Done.');
  return Command::SUCCESS;
}

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