function annotationcommand_adapter_call_hook_process_and_alter

master annotationcommand_adapter_call_hook_process_and_alter($names, $commandData, $return)

After the primary Drush command hook is called, call all of the annotated-command process and alter hooks.


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

mixed $return The return value of the command being executed:

Return value

mixed The altered command return value

See also


1 call to annotationcommand_adapter_call_hook_process_and_alter()
_drush_invoke_hooks in includes/
Invoke Drush API calls, including all hooks.


includes/, line 669


function annotationcommand_adapter_call_hook_process_and_alter($names, $commandData, $return) {
  return annotationcommand_adapter_call_process_interface($names, [HookManager::PRE_PROCESS_RESULT HookManager::PROCESS_RESULT HookManager::POST_PROCESS_RESULT HookManager::PRE_ALTER_RESULT HookManager::ALTER_RESULT HookManager::POST_ALTER_RESULT], $commandData, $return);