You are here

public function MigrateDestinationTable::complete in Migrate 7.2

Same name and namespace in other branches
  1. 6.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.

2 calls to MigrateDestinationTable::complete()
MigrateDestinationRole::import in plugins/destinations/user.inc
Import a single row.
MigrateDestinationTable::import in plugins/destinations/table.inc
Import a single row.

File

plugins/destinations/table.inc, line 206
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);
  }
}