You are here

public static function MigrationBase::displayMessage in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/base.inc \MigrationBase::displayMessage()

Output the given message appropriately (drush_print/drupal_set_message/etc.)

Parameters

string $message: The message to output.

int $level: Optional message severity as understood by drupal_set_message and drush_log (defaults to 'error').

15 calls to MigrationBase::displayMessage()
migrate_migrations in ./migrate.module
Retrieve a list of all active migrations, ordered by dependencies. To be recognized, a class must be non-abstract, and derived from MigrationBase.
Migration::addFieldMapping in includes/migration.inc
Add a mapping for a destination field, specifying a source field and/or a default value.
Migration::analyze in includes/migration.inc
Perform an analysis operation - report on field values in the source.
Migration::import in includes/migration.inc
Perform an import operation - migrate items from source to destination.
Migration::importedCount in includes/migration.inc
Get the number of records successfully imported.

... See full list

File

includes/base.inc, line 498
Defines the base class for migration processes.

Class

MigrationBase
The base class for all objects representing distinct steps in a migration process. Most commonly these will be Migration objects which actually import data from a source into a Drupal destination, but by deriving classes directly from MigrationBase…

Code

public static function displayMessage($message, $level = 'error') {
  if (isset(self::$displayFunction)) {
    call_user_func(self::$displayFunction, $message, $level);
  }
}