EventDispatcher->dispatch(MyModule::UPGRADE) - a case study in moving from D7 to D8 for module maintainers

AaronBauman

Learn about specific APIs in updating a complex Drupal 7 module to Drupal 8, in the context of Salesforce Suite, and gain valuable insight to apply to your own projects.

In the fall of 2013, Aaron Bauman started to work on the first iteration of a port of the Suite from D7 to D8. Dozens of meta-comments, dozens more refactors, and hundreds of hours later, Salesforce-8.x-3.x is approaching a stable release.

In this session, we'll explore aspects of navigating Drupal 8 APIs, looking specificially at Salesforce Suite's implementation of:

  • Events Dispatcher (Symfony-based partial replacement for Drupal's hook system)
  • Queue API and extending Drupal core DatabaseQueue
  • RouteSubscriber, dynamic routing, and route alterations (formerly hook_menu_alter)
  • Rebuilding REST client for Salesforce API

Session Track

Coding and Development

Experience Level

Advanced

Drupal Version