function DevelHookCommand::configure

File

src/Drush/Commands/DevelHookCommand.php, line 42

Class

DevelHookCommand
#[AsCommand(name: self::NAME, description: 'List implementations of a given hook and optionally edit one.', aliases: [ 'fnh', 'fn-hook', 'hook', 'devel-hook', ])] #[CLI\OptionsetGetEditor]

Namespace

Drupal\devel\Drush\Commands

Code

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