You are here

public function DrushLogMigrateMessage::display in Migrate Upgrade 8.3

Same name and namespace in other branches
  1. 8 src/DrushLogMigrateMessage.php \Drupal\migrate_upgrade\DrushLogMigrateMessage::display()
  2. 8.2 src/DrushLogMigrateMessage.php \Drupal\migrate_upgrade\DrushLogMigrateMessage::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

See also

drush_log()

File

src/DrushLogMigrateMessage.php, line 45

Class

DrushLogMigrateMessage
Class DrushLogMigrateMessage.

Namespace

Drupal\migrate_upgrade

Code

public function display($message, $type = 'status') {
  $type = isset($this->map[$type]) ? $this->map[$type] : RfcLogLevel::NOTICE;
  \Drupal::service('logger.channel.migrate_upgrade')
    ->log($type, $message);
}