DrupalCon Prague 2013: 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.

SESSION OBJECTIVES

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.

Drupal is a registered trademark of Dries Buytaert.