You are here

public function Migration::queueMessage in Migrate 7.2

Queue messages to be later saved through the map class.

Parameters

string $message: The message to record.

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

File

includes/migration.inc, line 1665
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 queueMessage($message, $level = MigrationBase::MESSAGE_ERROR) {
  $this->queuedMessages[] = array(
    'message' => $message,
    'level' => $level,
  );
}