Drupal 8 Routing: The Method in the Madness
Click here to watch Drupal 8 Routing: The Method in the Madness.
In almost every aspect, Drupal 8 is embracing Object Oriented programming (OOP). With some notable exceptions (Form API, alter hooks, render arrays), OOP is the way to go.
In Drupal 8, page callbacks have been completely rewritten. Instead of procedural functions, they now utilize Symfony2â€™s Routing component, and are all methods. Similarly, custom access callbacks are also classes. And many of the visual parts of hook_menu(), like local tasks and actions, are now plugins.
This session assumes basic familiarity with Drupal 7 module development.
This session will explain the many parts of routing, show how to convert from Drupal 7â€™s menu system to Drupal 8â€™s routing system, and provide insight into many of the decisions made during the development of the API.