public function MigrateDestinationVariable::prepareRollback in Migrate 7.2
Give handlers a shot at cleaning up before a variable has been rolled back.
Parameters
$name: The name of the variable about to be deleted.
1 call to MigrateDestinationVariable::prepareRollback()
- MigrateDestinationVariable::rollback in plugins/
destinations/ variable.inc - Delete a single variable.
File
- plugins/
destinations/ variable.inc, line 163 - Support for variable destinations.
Class
- MigrateDestinationVariable
- Destination class implementing migration into {variable}.
Code
public function prepareRollback($name) {
// We do nothing here but allow child classes to act.
$migration = Migration::currentMigration();
// Call any general handlers.
migrate_handler_invoke_all('variable', 'prepareRollback', $name);
// Then call any complete handler for this specific Migration.
if (method_exists($migration, 'prepareRollback')) {
$migration
->prepareRollback($name);
}
}