You are here

public function MigrateDestinationMenuLinks::completeRollback in Migrate 7.2

Give handlers a shot at cleaning up after a menu has been rolled back.

Parameters

$mlid: ID of the menu link which has been deleted.

1 call to MigrateDestinationMenuLinks::completeRollback()
MigrateDestinationMenuLinks::rollback in plugins/destinations/menu_links.inc
Delete a single menu item.

File

plugins/destinations/menu_links.inc, line 239
Support for menu link destinations.

Class

MigrateDestinationMenuLinks
Destination class implementing migration into {menu_links}.

Code

public function completeRollback($mlid) {

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

  // Call any general handlers.
  migrate_handler_invoke_all('menu_links', 'completeRollback', $mlid);

  // Then call any complete handler for this specific Migration.
  if (method_exists($migration, 'completeRollback')) {
    $migration
      ->completeRollback($mlid);
  }
}