input(); $handlers = $this->getCustomEventHandlers('sql-sanitize-confirms'); foreach ($handlers as $handler) { $handler($messages, $input); } if (!empty($messages)) { $this->output()->writeln(dt('The following operations will be performed:')); $this->io()->listing($messages); } if (!$this->io()->confirm(dt('Do you want to sanitize the current database?'))) { throw new UserAbortException(); } // All sanitize operations defined in post-command hooks, including Drush // core sanitize routines. See \Drush\Commands\sql\SanitizePluginInterface. } }