Skip to main content
Home
Drupal life hacks

Main navigation

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

Breadcrumb

  1. Home

CMS

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, 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
CMS
Powered by Drupal