You are here

public function MigrateDestinationEntityAPI::bulkRollback in Migrate Extras 7.2

Deletes multiple entities.

Parameters

array $ids: An array of entity ids of the entities to delete.

File

./entity_api.inc, line 146
Support for entity types implementing the Entity API.

Class

MigrateDestinationEntityAPI
Destination class implementing migration into entity types.

Code

public function bulkRollback(array $ids) {
  migrate_instrument_start('entity_delete_multiple');
  $this
    ->prepareRollback($ids);
  $result = entity_delete_multiple($this->entityType, $ids);
  $this
    ->completeRollback($ids);
  migrate_instrument_stop('entity_delete_multiple');
  return $result;
}