Mercurial > hg > isophonics-drupal-site
annotate modules/contrib/migrate_tools/src/DrushLogMigrateMessage.php @ 5:c69a71b4f40f
Add slideshow module
author | Chris Cannam |
---|---|
date | Thu, 07 Dec 2017 14:46:23 +0000 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 /** |
Chris@0 | 4 * @file |
Chris@0 | 5 * Contains \Drupal\migrate_tools\DrushLogMigrateMessage. |
Chris@0 | 6 */ |
Chris@0 | 7 |
Chris@0 | 8 namespace Drupal\migrate_tools; |
Chris@0 | 9 |
Chris@0 | 10 use Drupal\migrate\MigrateMessageInterface; |
Chris@0 | 11 |
Chris@0 | 12 class DrushLogMigrateMessage implements MigrateMessageInterface { |
Chris@0 | 13 |
Chris@0 | 14 /** |
Chris@0 | 15 * Output a message from the migration. |
Chris@0 | 16 * |
Chris@0 | 17 * @param string $message |
Chris@0 | 18 * The message to display. |
Chris@0 | 19 * @param string $type |
Chris@0 | 20 * The type of message to display. |
Chris@0 | 21 * |
Chris@0 | 22 * @see drush_log() |
Chris@0 | 23 */ |
Chris@0 | 24 public function display($message, $type = 'status') { |
Chris@0 | 25 drush_log($message, $type); |
Chris@0 | 26 } |
Chris@0 | 27 |
Chris@0 | 28 } |