function DevelEventCommand::execute
File
-
src/
Drush/ Commands/ DevelEventCommand.php, line 88
Class
- DevelEventCommand
- #[AsCommand(name: self::NAME, description: 'List implementations of a given event and optionally edit one.', aliases: [ 'fne', 'fn-event', 'event', ])]
Namespace
Drupal\devel\Drush\CommandsCode
protected function execute(InputInterface $input, OutputInterface $output) : int {
$info = $this->codeLocate($input->getArgument('implementation'));
$exec = self::getEditor('');
$cmd = sprintf($exec, Escape::shellArg($info['file']));
$process = $this->processManager
->shell($cmd);
$process->setTty(TRUE);
$process->mustRun();
return Command::SUCCESS;
}