5 months ago by dags
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.
This session was originally presented at DrupalCon Prague.