class MigrateMessage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/MigrateMessage.php \Drupal\migrate\MigrateMessage
- 9 core/modules/migrate/src/MigrateMessage.php \Drupal\migrate\MigrateMessage
Defines a migrate message class.
Hierarchy
- class \Drupal\migrate\MigrateMessage implements \Drupal\migrate\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 = $this->map[$type] ?? RfcLogLevel::NOTICE;
\Drupal::logger('migrate')
->log($type, $message);
}
}