function ConsoleExamplePrivateCommand::execute

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

File

core/modules/system/tests/modules/console_test/src/Command/ConsoleExamplePrivateCommand.php, line 32

Class

ConsoleExamplePrivateCommand
An example private command.

Namespace

Drupal\console_test\Command

Code

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

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