This is my first pass at updating B&M to the new routing system. This only includes the menu items in hook_menu(), and drops the callbacks into incomplete form controllers. There will need to be a decent amount of refactoring to complete this, but it's a start.

Note, you'll need to apply these patches first-

#2082519: .info.yml missing type and package
#1897846-7: Drupal 8 Compatibility Patch

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Albert Volkman’s picture

More forms converted, replaced BackupMigrateExportAdvancedForm with BackupMigrateController::advancedManualBackup.

Albert Volkman’s picture

Additional cleanup.

Albert Volkman’s picture

Additional conversions

Albert Volkman’s picture

Issue summary: View changes

Grammar error

mimes’s picture

I'm getting Undefined class constant 'DYNAMIC' in .../modules/backup_migrate/lib/Drupal/backup_migrate/BackupMigrateSubscriber.php on line 36 when I try to run the patches posted, perhaps RoutingEvents::DYNAMIC was removed? There's only RoutingEvents::ALTER in Drupal 8 now, although on the 8th of December RoutingEvents::DYNAMIC was still valid.

Albert Volkman’s picture

I believe there were some changes. However, I haven't had time to progress forward on this ticket in a while. Feel free to continue work on it if you like =)

Albert Volkman’s picture

Title: Convert menu items to new router » Upgrade backup_migrate to D8
Issue summary: View changes
dgorton’s picture

Status: Active » Closed (won't fix)
Issue tags: +SprintWeekend2015

Thank you for the work and patches! The 8.x-2.x branch is a ways out of date and the supported D8 branch of Backup and Migrate is going to be based on the 7.x-3.x branch. If you are willing to help porting that branch we'd be very happy for your help!

andypost’s picture

Status: Closed (won't fix) » Closed (duplicate)

Proper status, duplicate of #2409423: Port Backup_Migrate to Drupal 8

Albert Volkman’s picture

That's unfortunate. Hopefully at least some of this work can be utilized in the new branch conversion.