function annotationcommand_adapter_call_hook_pre_command

master annotationcommand_adapter.inc annotationcommand_adapter_call_hook_pre_command($names, CommandData $commandData)

Convert from an old-style Drush pre-command hook into annotated-command hooks.

Parameters

string[] $names All of the applicable names for the command being hooked:

CommandData $commandData All of the parameter data associated with the: current command invokation, including the InputInterface, OutputInterface and AnnotationData

Return value

boolean|object

See also

_drush_invoke_hooks().

File

includes/annotationcommand_adapter.inc, line 599
annotationcommand_adapter.inc

Code

function annotationcommand_adapter_call_hook_pre_command($names, CommandData $commandData) {
  return annotationcommand_adapter_call_validate_interface($names, [HookManager::PRE_COMMAND_HOOK], $commandData);
}