You are here

public function MigrateDestinationWebformSubmission::complete in Migrate Extras 7.2

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

Parameters

$entity: Webform submission object to build. This is the complete object after saving.

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

1 call to MigrateDestinationWebformSubmission::complete()
MigrateDestinationWebformSubmission::import in ./webform.inc
Import a record.

File

./webform.inc, line 150

Class

MigrateDestinationWebformSubmission
Destination class for the webform_submissions table.

Code

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

  // Call any general object handlers.
  migrate_handler_invoke_all('WebformSubmission', 'complete', $entity, $source_row, $this->node);

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