diff modules/contrib/migrate_tools/src/DrushLogMigrateMessage.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/contrib/migrate_tools/src/DrushLogMigrateMessage.php	Thu Jul 05 14:24:15 2018 +0000
@@ -0,0 +1,28 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\migrate_tools\DrushLogMigrateMessage.
+ */
+
+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);
+  }
+
+}