Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Drupal / Commands / sql / SanitizePluginInterface.php
diff --git a/vendor/drush/drush/src/Drupal/Commands/sql/SanitizePluginInterface.php b/vendor/drush/drush/src/Drupal/Commands/sql/SanitizePluginInterface.php
new file mode 100644 (file)
index 0000000..ac823cc
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+namespace Drush\Drupal\Commands\sql;
+
+use Consolidation\AnnotatedCommand\CommandData;
+use Symfony\Component\Console\Input\InputInterface;
+
+/**
+ * Implement this interface when building a Drush sql-sanitize plugin.
+ */
+interface SanitizePluginInterface
+{
+    /**
+     * Run your sanitization logic using standard Drupal APIs.
+     *
+     * @param $result Exit code from the main operation for sql-santize.
+     * @param $commandData Information about the current request.
+     *
+     * @hook post-command sql-sanitize
+     */
+    public function sanitize($result, CommandData $commandData);
+
+    /**
+     * @hook on-event sql-sanitize-confirms
+     * @param $messages An array of messages to show during confirmation.
+     * @param $input The effective commandline input for this request.
+     */
+    public function messages(&$messages, InputInterface $input);
+}