Skip to main content
Home
Drupal life hacks

Main navigation

  • Drupal
  • React
  • WP
  • Contact
  • About
User account menu
  • Log in

Breadcrumb

  1. Home

Routing

By admin, 1 August, 2026
Drupal 11.5 Route title property example using PHP route attributes

Route Attributes Now Support a Top-Level title Property in Drupal 11.5

The Drupal 11.5 Route title property introduces a small but welcome improvement to the routing system. Route attributes now support a top-level title property, making route definitions cleaner and allowing simple dynamic page titles to be defined directly alongside the route.

Tags

  • Drupal
  • Drupal 11.5
  • Drupal Core
  • Route Attributes
  • PHP Attributes
  • Routing
  • Dynamic Page Titles
  • Module Development
By admin, 7 April, 2024

Understanding Routes in Drupal

In Drupal, a route represents an association between a URL and a controller that handles requests to that URL. It determines which controller (or handler) should be invoked to handle a user request to a specific URL.

Routes in Drupal are declared in a *.routing.yml file, which is typically located in the module or theme folder. This file defines the URLs (paths), controllers, and other parameters such as access permissions, request parameters, etc.

Example of a route declaration in mymodule.routing.yml file:

Tags

  • #Drupal Planet
  • Routing
Routing
Powered by Drupal