You are here

class MigrateMessage in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/MigrateMessage.php \Drupal\migrate\MigrateMessage

Defines a migrate message class.

Hierarchy

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\migrate
View 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

Namesort descending Modifiers Type Description Overrides
MigrateMessage::$map protected property The map between migrate status and watchdog severity.
MigrateMessage::display public function Displays a migrate message. Overrides MigrateMessageInterface::display