function annotationcommand_adapter_call_hook_pre_validate

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

Convert from an old-style Drush pre-validate 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 555
annotationcommand_adapter.inc

Code

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