You are here

public function MigrateDestinationBiblioType::prepare in Bibliography Module 7.3

Give handlers a shot at modifying the object before saving it.

Parameters

$entity: OGMembership object to build. Prefilled with any fields mapped in the Migration.

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

1 call to MigrateDestinationBiblioType::prepare()
MigrateDestinationBiblioType::import in includes/migrate/plugins/destinations/biblio_type.inc
Import a biblio type.

File

includes/migrate/plugins/destinations/biblio_type.inc, line 90

Class

MigrateDestinationBiblioType
@file

Code

public function prepare($entity, stdClass $row) {

  // We do nothing here but allow child classes to act.
  $migration = Migration::currentMigration();

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