public static function MigrationBase::staticInitialize in Migrate 7.2
Same name and namespace in other branches
- 6.2 includes/base.inc \MigrationBase::staticInitialize()
Initialize static members, before any class instances are created.
1 call to MigrationBase::staticInitialize()
File
- includes/
base.inc, line 501 - 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 staticInitialize() {
// Default the displayFunction outputFunction based on context
if (function_exists('drush_log')) {
self::$displayFunction = 'drush_log';
}
else {
self::$displayFunction = 'drupal_set_message';
}
}