Guide

Develop Custom Pages for Drupal 8, 9, and 10

What will you learn

  • Overview of routes, controllers, and responses
  • Creating a route and controller
  • Setting a dynamic title for a route
  • Overview of parameters and value upcasting in routes
  • Overview of menu links in a module
  • Adding different types of menu links in a module

Overview

Drupal's routing system and controllers define and manage URL paths and the corresponding logic to handle requests, enabling the creation of custom pages and functionality within a Drupal site.

Drupal's Menu API, menu links, and local actions provide tools for defining and managing navigational elements and contextual actions, facilitating the creation of intuitive and organized site structures and user interfaces.

Drupal developer learning resources

Routes, controllers, and responses

This course covers how to map URLs to controller classes, handle dynamic parameters, set dynamic titles, and implement access control for routes. You’ll learn how to use parameter value upcasting to simplify route definitions, and how Drupal’s routing system builds on top of the Symfony framework. Additionally, you will learn about how Drupal turns an HTTP request into an HTML response.

In these related topics, you'll find both Drupalize.Me and external resources to help you along.

Routing

Topic
Categories
Drupal 8, 9, and 10
More information

Drupal's Routing API maps the URL of an incoming request to the code responsible for generating the content that is rendered in response.

Categories
Drupal 8, 9, and 10
More information

Controllers are the portion of a Drupal module that handle responding to an incoming request with the appropriate response data.

Symfony

Topic
Categories
Drupal 8, 9, and 10
More information

Symfony is a set of reusable PHP components, and a framework for building PHP applications. Drupal makes use of various Symfony components.

“Drupalize.Me has trained thousands of Drupalistas. Their video lessons help to address our constant need for more Drupal talent. Drupal needs training like this to support its growth.”
Dries Buytaert
Drupal Founder and Project Lead
Photo of Dries Buytaert
“They’re easy to understand. They’re thorough. They’re funny. They’re always entertaining, and it makes it easy to learn parts of Drupal and how you can integrate it into your workflow and learn more and have a good time doing it.”
Roger Carr
Drupalize.Me Member
Photo of Roger Carr
“The mission of the Drupal Association is to foster and support the Drupal software project, the community, and its growth. Drupal education, like that provided by Drupalize.Me, is important to this mission.”
Megan Sanicki
Former Exec. Director, Drupal Assoc.
Photo of Megan Sanicki

FAQs

Am I required to sign a contract?
No. You can purchase a membership and/or cancel any time. Drupalize.Me is a pay-as-you-go service.

Can I preview tutorials before joining?
Yes! Just navigate to our tutorial library. Our free tutorials are labeled with a green "FREE" tag.

Can I watch videos on my mobile device?
Yes! Drupalize.Me is a responsive site and can be accessed in the browser on any mobile device. More FAQs