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