You are here

public function MigrateDestinationParagraphsItem::bulkRollback in Paragraphs 7

Delete a batch of nodes at once.

Parameters

array $item_ids: Array of node IDs to be deleted.

File

migrate/destinations/MigrateDestinationParagraphsItem.inc, line 93

Class

MigrateDestinationParagraphsItem
Provides basic class for importing Paragraphs via Migrate API.

Code

public function bulkRollback(array $item_ids) {
  migrate_instrument_start('paragraphs_item_delete_multiple');
  $this
    ->prepareRollback($item_ids);
  entity_delete_multiple('paragraphs_item', $item_ids);
  $this
    ->completeRollback($item_ids);
  migrate_instrument_stop('paragraphs_item_delete_multiple');
}