class MigrateMessage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/src/MigrateMessage.php \Drupal\migrate\MigrateMessage
Defines a migrate message class.
Hierarchy
- class \Drupal\migrate\MigrateMessage implements MigrateMessageInterface
Expanded class hierarchy of MigrateMessage
1 file declares its use of MigrateMessage
File
- core/
modules/ migrate/ src/ MigrateMessage.php, line 10
Namespace
Drupal\migrateView source
class MigrateMessage implements MigrateMessageInterface {
/**
* The map between migrate status and watchdog severity.
*
* @var array
*/
protected $map = [
'status' => RfcLogLevel::INFO,
'error' => RfcLogLevel::ERROR,
];
/**
* {@inheritdoc}
*/
public function display($message, $type = 'status') {
$type = isset($this->map[$type]) ? $this->map[$type] : RfcLogLevel::NOTICE;
\Drupal::logger('migrate')
->log($type, $message);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateMessage:: |
protected | property | The map between migrate status and watchdog severity. | |
MigrateMessage:: |
public | function |
Displays a migrate message. Overrides MigrateMessageInterface:: |