function MigrateExecutable::saveMessage

Same name in other branches
  1. 9 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::saveMessage()
  2. 8.9.x core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::saveMessage()
  3. 10 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::saveMessage()

Overrides MigrateExecutableInterface::saveMessage

3 calls to MigrateExecutable::saveMessage()
MigrateExecutable::handleException in core/modules/migrate/src/MigrateExecutable.php
Takes an Exception object and both saves and displays it.
MigrateExecutable::import in core/modules/migrate/src/MigrateExecutable.php
TestMigrateExecutable::handleException in core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php

File

core/modules/migrate/src/MigrateExecutable.php, line 494

Class

MigrateExecutable
Defines a migrate executable class.

Namespace

Drupal\migrate

Code

public function saveMessage($message, $level = MigrationInterface::MESSAGE_ERROR) {
    $this->getIdMap()
        ->saveMessage($this->sourceIdValues, $message, $level);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.