You are here

class DrushLogMigrateMessage in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8 src/DrushLogMigrateMessage.php \Drupal\migrate_tools\DrushLogMigrateMessage
  2. 8.2 src/DrushLogMigrateMessage.php \Drupal\migrate_tools\DrushLogMigrateMessage
  3. 8.3 src/DrushLogMigrateMessage.php \Drupal\migrate_tools\DrushLogMigrateMessage
  4. 8.4 src/DrushLogMigrateMessage.php \Drupal\migrate_tools\DrushLogMigrateMessage

Class DrushLogMigrateMessage.

@package Drupal\migrate_tools

Hierarchy

Expanded class hierarchy of DrushLogMigrateMessage

File

src/DrushLogMigrateMessage.php, line 14

Namespace

Drupal\migrate_tools
View source
class DrushLogMigrateMessage extends MigrateMessage 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') {
    $type = isset($this->map[$type]) ? $this->map[$type] : RfcLogLevel::NOTICE;
    \Drupal::service('logger.channel.migrate_tools')
      ->log($type, $message);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DrushLogMigrateMessage::display public function Output a message from the migration. Overrides MigrateMessage::display
MigrateMessage::$map protected property The map between migrate status and watchdog severity.