Version 1
[yaffs-website] / web / modules / contrib / migrate_tools / src / DrushLogMigrateMessage.php
diff --git a/web/modules/contrib/migrate_tools/src/DrushLogMigrateMessage.php b/web/modules/contrib/migrate_tools/src/DrushLogMigrateMessage.php
new file mode 100644 (file)
index 0000000..9ed1d9f
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace Drupal\migrate_tools;
+
+use Drupal\migrate\MigrateMessageInterface;
+
+class DrushLogMigrateMessage implements MigrateMessageInterface {
+
+  /**
+   * Output a message from the migration.
+   *
+   * @param string $message
+   *   The message to display.
+   * @param string $type
+   *   The type of message to display.
+   *
+   * @see drush_log()
+   */
+  public function display($message, $type = 'status') {
+    drush_log($message, $type);
+  }
+
+}