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