DrupalCon Amsterdam 2019: Let’s take the best route - Exploring Drupal 8 Routing System

17:58
268
4
0
0
0
Oct 29, 2019

Surbhi Sriwal
Srijan Technologies, India

Session content
-------------------------
Drupal 8's routing system came from Symfony's. Drupal's routing system can do everything Symfony's can (and more).
Drupal 7 used hook_menus. In Drupal 8 module’s routes are defined in yaml files and these trigger actions defined in module’s controller.

In our talk, we're going to cover

How Routing happens in Symfony

How Drupal 8 makes use Symfony’s routing system using yaml and controllers

How is Different from Drupal 7

What all(and more) Drupal’s routing system can do

Execution precedence of same routes

Structuring Drupal 8 routes

A working demo

Takeaways
---------------
Defining your own routes your own way.

Best practices while defining routes.

At the end of this session you be see how routing dumps a URL matcher or generator specific to a particular routes and how it maps an HTTP requests.

Prerequisites
--------------------
Understanding of Drupal 8 module development is required.

Experience with Object Oriented Programming will be advantageous.

Hi! I'm Karim Boudjema, the developer and site-builder of this site. I'm currently working as a freelance Drupal developer.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.