Skip to main content
Home
Drupal life hacks

Main navigation

  • Drupal
  • React
  • WP
  • Contact
  • About
User account menu
  • Log in
By admin, 26 December, 2025
Illustration of a "Universal PHP Soldier" wearing armor with PHP, Symfony, Laravel, and Drupal logos. The soldier holds a laptop displaying "<DI>" representing Dependency Injection and a wrench representing controllers. Flow arrows show Controller → Mailer Service → Response. The image emphasizes mastering DI across PHP frameworks.

Universal “Soldier” in PHP. Dependency Injection Without Pain (Symfony, Laravel, Drupal)

Universal “Soldier” in PHP

Dependency Injection Without Pain (Symfony, Laravel, Drupal)

In the first article, we covered the controller as a universal entry point into any modern PHP framework.
Now it’s time for the next critical step — Dependency Injection (DI).

Many developers fear DI because:

  • “There’s too much magic”
  • “I don’t understand where objects come from”
  • “In Drupal it’s a nightmare”

The good news is simple:

Tags

  • PHP
  • Symfony
  • Laravel
  • Drupal
  • Dependency Injection
  • DI
  • PHP frameworks
  • PHP controller
  • Symfony controller
  • Laravel controller
  • Drupal controller
  • Service Container
  • Autowiring
  • PHP tutorial
  • PHP architecture
  • Backend Development
By admin, 24 December, 2025
Universal PHP controller architecture across Symfony, Laravel, and Drupal frameworks

The Universal “Soldier” in PHP. How to Tame Any Framework. Step One — The Controller

The Universal “Soldier” in PHP

How to Tame Any Framework. Step One — The Controller

The PHP ecosystem is fragmented: Symfony, Laravel, Drupal, Yii, Slim…
At first glance, each framework feels like a separate universe with its own rules, magic, and “correct” way of doing things.

But there is good news:

90% of modern PHP frameworks speak the same language.
That language is HTTP and Symfony Components.

Tags

  • PHP
  • Symfony
  • Laravel
  • Drupal
  • PHP frameworks
  • controllers
  • web development
  • Backend Development
  • software architecture
  • MVC
  • HTTP
  • Symfony Components
  • framework agnostic PHP
  • PHP tutorial
  • clean code
By admin, 20 December, 2025
Native HTMX in Drupal 11.3: Rich UX with Less JavaScript

Native HTMX in Drupal 11.3: Rich UX with Less JavaScript

Drupal has long offered multiple ways to build dynamic user interfaces: Form API AJAX, BigPipe, and fully decoupled frontends with React or Vue. Each approach solved specific problems, but often at the cost of complexity, heavy JavaScript, or difficult maintenance.

With Drupal 11.3, HTMX becomes a first‑class citizen in core, offering a modern alternative: rich, reactive UX built primarily with HTML and server-side rendering, while dramatically reducing JavaScript overhead.

Tags

  • Drupal
  • HTMX
  • Web Performance
  • Server Rendering
  • Progressive Enhancement
  • PHP
  • BigPipe
By admin, 17 December, 2025
Drupal Paragraphs vs Layout Builder: When and How to Use Each

Drupal Paragraphs vs Layout Builder: When and How to Use Each

Drupal offers multiple ways to build flexible, editor-friendly pages. Two of the most powerful tools are Paragraphs and Layout Builder. Both solve different problems, and understanding when to use which — or how to combine them — is key to building scalable Drupal sites.

This article explains the differences, strengths, weaknesses, and best practices for using Paragraphs and Layout Builder in real-world Drupal projects.

Tags

  • Drupal
  • Drupal Paragraphs
  • Layout Builder
  • Drupal 11
By admin, 15 December, 2025
Impostor Syndrome: Solid Fundamentals or a Psychological State?

Impostor Syndrome: Solid Fundamentals or a Psychological State?

Impostor syndrome is often described simply as “a person doubting themselves.” For professionals — developers, architects, engineers — this explanation is too simplistic.

Interestingly, impostor syndrome frequently affects highly skilled specialists, not beginners. These are people with experience, proven results, and systematic thinking.

So the real question is: does strong knowledge of fundamentals prevent impostor syndrome, or is it mainly a psychological phenomenon?

Tags

  • Impostor Syndrome
  • Developer Mindset
  • Drupal
  • Backend Development
  • PHP
  • Professional Growth
  • Self-Doubt
  • Technical Confidence
  • Software Engineering
  • Career Development
  • Psychology
  • Perfectionism
  • Fundamentals
  • Chess Analogy
  • Architectural Decisions
  • Legacy Code
  • Self-Trust
By admin, 14 December, 2025

Drupal 11.3: OverviewTerms Form Now Extends EntityForm — What Developers Need to Know

In Drupal 11.3, core introduces an important structural change for the taxonomy system:
Drupal\taxonomy\Form\OverviewTerms now extends Drupal\Core\Entity\EntityForm.

This update modernizes the taxonomy UI, makes the overview form fully consistent with other entity-based forms, and—most importantly—gives developers a cleaner and more powerful way to customize and override it.

In this article, we’ll walk through the change, why it matters, and how you can override the form in your own module.

Tags

  • Taxonomy
  • OverviewTerms
  • EntityForm
  • hook_entity_type_alter
  • Taxonomy Vocabulary
  • Drupal Forms API
By admin, 12 December, 2025

Drupal 11.3: The access callback Key in Views Handlers Is Now Deprecated

With the release of Drupal 11.3.x, the Views API has received an important change:
the long-standing access callback key used in Views handler definitions has been deprecated.

This update impacts module developers, site builders, and anyone defining custom Views handlers.


🚨 What Exactly Has Been Deprecated?

In earlier versions of Drupal, you could define access logic for a Views handler directly inside views_data():

Tags

  • Drupal 11
  • Views API
  • access callback deprecated
  • custom handler
  • access method
  • Drupal change record
By admin, 10 December, 2025
Faster Drupal: Single Cardinality Fields Now Loaded in a Single Query

Faster Drupal: Single Cardinality Fields Now Loaded in a Single Query

Drupal 11.4 introduces a major improvement in entity loading performance. If you’re a developer or site builder, this change could significantly reduce the number of database queries on your site and speed up page loads.


What Are Single Cardinality Fields?

Single cardinality fields are fields that can only have one value per entity. Common examples include:

Tags

  • Drupal
  • performance
  • entity
  • single cardinality
  • SQL optimization
By admin, 28 November, 2025

Why Direct Database Queries in Drupal Are Dangerous: Understanding Entity Access and Real-World Failures

When working with Drupal entities, many developers assume that access control “just works.” This is only partially true. Drupal does provide a robust access system — but only when you interact with entities using the Entity API.

However, if you run raw SQL queries, write custom EntityQuery logic, or misconfigure Views, you can accidentally expose sensitive content to unauthorized users.

Tags

  • Drupal
  • Entity Access
  • Access Control
  • EntityQuery
  • Drupal security
  • Views
  • SQL Queries
By admin, 27 November, 2025

Using PostgreSQL with Drupal: Is It a Good Choice in 2025?

Drupal has supported multiple database engines for many years, including both MySQL and PostgreSQL. While MySQL remains the de-facto standard across most Drupal installations, more developers today are exploring PostgreSQL as an alternative — especially those who already rely on it for enterprise applications and microservices.

But is PostgreSQL a practical choice for a real Drupal project in 2025?
This article breaks down everything you need to know.

Tags

  • Drupal
  • PostgreSQL
  • MySQL
  • Drupal Performance
  • Drupal Development
  • Database Engines

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page
Powered by Drupal