class MigrateMessage in Zircon Profile 8.0
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
5 files declare their use of MigrateMessage
- FileUriTest.php in core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ process/ d6/ FileUriTest.php - Contains \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest.
- MigrateEventsTest.php in core/
modules/ migrate/ src/ Tests/ MigrateEventsTest.php - Contains \Drupal\migrate\Tests\MigrateEventsTest.
- MigrateInterruptionTest.php in core/
modules/ migrate/ src/ Tests/ MigrateInterruptionTest.php - Contains \Drupal\migrate\Tests\MigrateInterruptionTest.
- MigrateSkipRowTest.php in core/
modules/ migrate/ src/ Tests/ MigrateSkipRowTest.php - Contains \Drupal\migrate\Tests\MigrateSkipRowTest.
- TermNode.php in core/
modules/ taxonomy/ src/ Plugin/ migrate/ builder/ d6/ TermNode.php - Contains \Drupal\taxonomy\Plugin\migrate\builder\d6\TermNode.
File
- core/
modules/ migrate/ src/ MigrateMessage.php, line 15 - Contains \Drupal\migrate\MigrateMessage.
Namespace
Drupal\migrateView source
class MigrateMessage implements MigrateMessageInterface {
/**
* The map between migrate status and watchdog severity.
*
* @var array
*/
protected $map = array(
'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:: |