Skip to main content
Home
Drupal life hacks

Main navigation

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

Breadcrumb

  1. Home

Module Development

By admin, 6 August, 2026
Drupal 11.5 before and after library ordering example

Core Library Definitions Now Support before and after Ordering in Drupal 11.5

Drupal 11.5 introduces Drupal 11.5 library ordering, a new feature that allows libraries to be loaded before or after another library without declaring a dependency. The new before and after keys make asset ordering cleaner, reduce unnecessary dependencies, and provide a more maintainable way to control JavaScript and CSS loading.

Tags

  • Drupal
  • Drupal 11
  • Drupal 11.5
  • Drupal Core
  • Asset Libraries
  • Libraries API
  • JavaScript
  • Frontend
  • Module Development
  • Theme Development
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, 11 July, 2026
Drupal 11 CLI showing the new vendor/bin/dr command in Drupal 11.4.

Drupal 11.4 introduces dr: A new CLI for Drupal Core

Drupal 11.4 brings one of the most significant developer experience improvements in recent years: a built-in command-line interface that can discover commands provided by Drupal modules.

Until now, Drupal Core included a limited CLI (core/scripts/drupal) that only supported a handful of core commands. Most developers relied entirely on Drush for command-line workflows.

Tags

  • Drupal
  • Drupal 11
  • Drupal Core
  • Drupal CLI
  • dr
  • Drush
  • Symfony Console
  • Symfony Attributes
  • PHP
  • Module Development
  • Developer Experience
  • Composer
  • DDEV
  • Command Line
  • Drupal 11.4
By admin, 2 July, 2026
PHP Attributes for Form Routes

Drupal 11.5: Defining Form Routes with PHP Attributes

Drupal 11.5 introduces another significant step toward modern PHP development by allowing form routes to be defined directly on form classes using PHP attributes.

Until now, every custom form required a corresponding entry in a module's .routing.yml file. With this new feature, many of those YAML definitions can be eliminated, making code easier to maintain and keeping route configuration close to the class it belongs to.

Tags

  • Drupal
  • Drupal 11.5
  • Drupal Core
  • PHP Attributes
  • Form Routes
  • Route Discovery
  • Symfony Attributes
  • Module Development
  • ConfigFormBase
  • FormBase
  • Drupal API
  • Modern PHP
Module Development
Powered by Drupal