You are here

public function MigrateDestinationTable::complete in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/destinations/table.inc \MigrateDestinationTable::complete()

Give handlers a shot at modifying the object (or taking additional action) after saving it.

Parameters

$object: Entity object to build. This is the complete object after saving.

$source_row: Raw source data object - passed through to complete handlers.

1 call to MigrateDestinationTable::complete()
MigrateDestinationTable::import in plugins/destinations/table.inc
Import a single row.

File

plugins/destinations/table.inc, line 201
Support for tables defined through the Schema API.

Class

MigrateDestinationTable
Destination class implementing migration into a single table defined through the Schema API.

Code

public function complete($entity, stdClass $source_row) {
  $migration = Migration::currentMigration();

  // Call any complete handler for this specific Migration.
  if (method_exists($migration, 'complete')) {
    $migration
      ->complete($entity, $source_row);
  }
}