You are here

public function Drush9LogMigrateMessage::display in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8.4 src/Drush9LogMigrateMessage.php \Drupal\migrate_tools\Drush9LogMigrateMessage::display()

Output a message from the migration.

Parameters

string $message: The message to display.

string $type: The type of message to display.

Overrides MigrateMessageInterface::display

File

src/Drush9LogMigrateMessage.php, line 43

Class

Drush9LogMigrateMessage
Print message in drush from migrate message. Drush 9 version.

Namespace

Drupal\migrate_tools

Code

public function display($message, $type = 'status') {
  $type = isset($this->map[$type]) ? $this->map[$type] : $type;
  $this->logger
    ->log($type, $message);
}