function DevelEventCommand::configure

File

src/Drush/Commands/DevelEventCommand.php, line 40

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\Commands

Code

protected function configure() : void {
  $this->addArgument('event', mode: InputArgument::REQUIRED, description: 'The name of the event to explore.')
    ->addArgument(name: 'implementation', mode: InputArgument::OPTIONAL, description: 'The name of the implementation to edit. Usually omitted')
    ->addUsage('devel-event kernel.terminate');
}