You are here

public function MigrateExecutable::saveMessage in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::saveMessage()

Passes messages through to the map class.

Parameters

string $message: The message to record.

int $level: (optional) Message severity (defaults to MESSAGE_ERROR).

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
Performs an import operation - migrate items from source to destination.
TestMigrateExecutable::handleException in core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php
Takes an Exception object and both saves and displays it.

File

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

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);
}