public function DrushLogMigrateMessage::display in Migrate Upgrade 8.3
Same name and namespace in other branches
- 8 src/DrushLogMigrateMessage.php \Drupal\migrate_upgrade\DrushLogMigrateMessage::display()
- 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_upgradeCode
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);
}