Skip to main content
Home
Drupal life hacks

Main navigation

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

Breadcrumb

  1. Home

Drupal 11.5

By admin, 17 August, 2026
Drupal 11.5 user role actions moved from hook_ENTITY_TYPE_insert to the Configuration API

Drupal 11.5: User Role Actions Are No Longer Created via hook_user_role_insert()

Drupal 11.5 introduces an important change for module developers and maintainers of installation profiles, recipes, and distributions: system actions for adding and removing roles are no longer automatically created through hook_user_role_insert().

The affected actions are:

Tags

  • Drupal
  • Drupal 11.5
  • Drupal Core
  • user roles
  • role actions
  • Configuration API
  • hook_ENTITY_TYPE_insert
  • hook_user_role_insert
  • Drupal configuration
  • configuration management
  • Drupal recipes
  • installation profiles
  • Drupal modules
  • Drupal Development
By admin, 12 August, 2026
Drupal 11.5 .theme files deprecated and theme hooks converted to OOP classes

The .theme File Extension Is Deprecated in Drupal 11.5: A Guide to OOP Theme Hooks

Drupal 11.5 introduces an important change for theme developers: the .theme file extension has been deprecated.

Themes have traditionally placed procedural hooks and helper functions in a file such as:

Tags

  • Drupal 11.5
  • Drupal 13
  • Drupal themes
  • Drupal theme development
  • Drupal OOP hooks
  • Drupal Hook API
  • Drupal hooks
  • .theme files
  • Drupal deprecations
  • Drupal migration
  • PHP
  • Drupal Core
  • Drupal developers
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, 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
Drupal 11.5
Powered by Drupal