class DrushLogMigrateMessage in Migrate Tools 8.5
Same name and namespace in other branches
- 8 src/DrushLogMigrateMessage.php \Drupal\migrate_tools\DrushLogMigrateMessage
- 8.2 src/DrushLogMigrateMessage.php \Drupal\migrate_tools\DrushLogMigrateMessage
- 8.3 src/DrushLogMigrateMessage.php \Drupal\migrate_tools\DrushLogMigrateMessage
- 8.4 src/DrushLogMigrateMessage.php \Drupal\migrate_tools\DrushLogMigrateMessage
Class DrushLogMigrateMessage.
@package Drupal\migrate_tools
Hierarchy
- class \Drupal\migrate\MigrateMessage implements MigrateMessageInterface
- class \Drupal\migrate_tools\DrushLogMigrateMessage implements MigrateMessageInterface
Expanded class hierarchy of DrushLogMigrateMessage
File
- src/
DrushLogMigrateMessage.php, line 14
Namespace
Drupal\migrate_toolsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrushLogMigrateMessage:: |
public | function |
Output a message from the migration. Overrides MigrateMessage:: |
|
MigrateMessage:: |
protected | property | The map between migrate status and watchdog severity. |