You are here

public function Migration::saveMessage in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 includes/migration.inc \Migration::saveMessage()

Pass messages through to the map class.

Parameters

string $message: The message to record.

int $level: Optional message severity (defaults to MESSAGE_ERROR).

Overrides MigrationBase::saveMessage

3 calls to Migration::saveMessage()
Migration::onEmptyDestination in includes/migration.inc
React when migration didn't failed but destination ids are empty.
Migration::onMigrateException in includes/migration.inc
React when there is a migrate exception
Migration::saveQueuedMessages in includes/migration.inc
Save any messages we've queued up to the message table.

File

includes/migration.inc, line 1653
Defines the base class for import/rollback processes.

Class

Migration
The base class for all import objects. This is where most of the smarts of the migrate module resides. Migrations are created by deriving from this class, and in the constructor (after calling parent::__construct()) initializing at a minimum the name,…

Code

public function saveMessage($message, $level = MigrationBase::MESSAGE_ERROR) {
  $this->map
    ->saveMessage($this
    ->currentSourceKey(), $message, $level);
}