public function MigrateDestinationVariable::prepare in Migrate 7.2
Implementation of MigrateDestination::prepare().
1 call to MigrateDestinationVariable::prepare()
- MigrateDestinationVariable::import in plugins/
destinations/ variable.inc - Import a single row.
File
- plugins/
destinations/ variable.inc, line 110 - Support for variable destinations.
Class
- MigrateDestinationVariable
- Destination class implementing migration into {variable}.
Code
public function prepare($variable, stdClass $row) {
// We do nothing here but allow child classes to act.
$migration = Migration::currentMigration();
$variable->migrate = array(
'machineName' => $migration
->getMachineName(),
);
// Call any general handlers.
migrate_handler_invoke_all('variable', 'prepare', $variable, $row);
// Then call any prepare handler for this specific Migration.
if (method_exists($migration, 'prepare')) {
$migration
->prepare($variable, $row);
}
}