Skip to main content
Home
Drupal life hacks

Main navigation

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

Breadcrumb

  1. Home

Drupal

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, 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
By admin, 10 May, 2026

Understanding the Drupal 11.4 Change: Block Content Attributes Moved to the Content Wrapper

With the release of Drupal, an important rendering behavior has changed for block content render arrays. If your custom modules or themes rely on #attributes in block render arrays, this update may affect your frontend output.

The change was introduced in the Drupal core issue:

“Attributes of a block content are applied to block itself” (#2486267)

This article explains what changed, why it matters, and how to update your code correctly.

Tags

  • Drupal
  • PHP
  • CMS
  • Open Source
By admin, 15 January, 2026
Drupal Core Adopts the main Branch: A Technical Deep Dive into the New Workflow

Drupal Core Adopts the main Branch: A Technical Deep Dive into the New Workflow

Drupal Core Adopts the main Branch: A Technical Deep Dive into the New Workflow

In January 2026, the Drupal project officially announced that the main branch is now the primary development branch for Drupal core. This change completes a series of infrastructure updates that began back in 2023 and brings Drupal’s development workflow in line with modern Git best practices used across the open-source ecosystem.

This article explains:

Tags

  • Drupal
  • Drupal Core
  • Git Workflow
  • Main Branch
  • Open Source
  • CI/CD
  • software architecture
By admin, 4 January, 2026

Implementing a Real-World Feature Across Drupal, Symfony, and Laravel

Implementing a Real-World Feature Across Drupal, Symfony, and Laravel

Feature: E-Commerce “Discount Code Validator”

Requirement:

  • When a user applies a discount code during checkout:
    • Validate the code
    • Check expiration and usage limits
    • Calculate discount
    • Return an updated order total
  • Must be extensible for future promotion types

This feature is small but touches services, events, plugins, and DI—perfect for comparing modular approaches.

Tags

  • Drupal
  • Symfony
  • Laravel
  • PHP
  • modularity
  • Dependency Injection
  • DI
  • plugin API
  • service provider
  • Services
  • bundles
  • CMS
  • web development
  • PHP frameworks
  • software architecture
  • extensibility
  • Drupal module
  • Symfony Components
  • Laravel packages
  • event system
  • Service Container
  • Autowiring
  • software design
  • code reusability
  • feature implementation
By admin, 3 January, 2026
Why You Should Use the Extend Help Maintainers Module in Drupal

Why You Should Use the Extend Help Maintainers Module in Drupal

Why You Should Use the Extend Help Maintainers Module in Drupal

Introduction

When working with Drupal, especially on large or long‑living projects, one common challenge is understanding who maintains a module and where to get help. Core and contributed modules often have maintainers listed on Drupal.org, but this information is not always easily accessible directly inside the Drupal admin interface.

Tags

  • Drupal
  • Drupal module
  • Extend Help Maintainers
  • Drupal help system
  • module maintainers
  • Drupal .info.yml
  • Drupal Development
  • Drupal contrib modules
  • Drupal custom modules
  • developer documentation
  • Drupal best practices
By admin, 1 January, 2026
Drupal Module Development vs Symfony and Laravel: How Modularity Really Works

Drupal Module Development vs Symfony and Laravel: How Modularity Really Works

Drupal Module Development vs Symfony and Laravel: How Modularity Really Works

Introduction

When developers talk about Drupal module development, they often assume that “modules” are a Drupal-only concept. However, modern PHP frameworks like Symfony and Laravel are also highly modular—just in different ways.

Tags

  • Drupal
  • Drupal Module Development
  • PHP
  • Symfony
  • Laravel
  • modular architecture
  • software modularity
  • Dependency Injection
  • event-driven architecture
  • plugin system
  • Service Container
  • composer packages

Pagination

  • 1
  • Next page
Drupal
Powered by Drupal