You are here

public function WinePrepMigration::__construct in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 migrate_example/wine.inc \WinePrepMigration::__construct()

General initialization of a MigrationBase object.

Overrides MigrationBase::__construct

File

migrate_example/wine.inc, line 60
Advanced migration examples. These serve two purposes:

Class

WinePrepMigration
TIP: While usually you'll create true migrations - processes that copy data from some source into Drupal - you can also define processing steps for either the import or rollback stages that take other actions. In this case, we want to disable…

Code

public function __construct() {

  // Because we're derived directly from migrationBase rather than AdvancedExampleMigration,
  // we must specify the group again here.
  parent::__construct(MigrateGroup::getInstance('wine', array(
    'default',
  )));
  $this->description = t('If auto_nodetitle is present, disable it for the duration');
}