Drupal Core APIs

Data Table Implementation Patterns in Drupal

Submitted by admin on
:root { --bg: #0b0f14; --surface: #111720; --surface2: #161d28; --border: #1e2d3d; --accent: #00d4ff; --accent2: #ff6b35; --accent3: #7fff6b; --text: #c8d8e8; --text-dim: #5a7a9a; --text-bright: #e8f4ff; --heading: #Fraunces, serif; } * { box-sizing: border-box; margin: 0; padding: 0; } body { background: va

General Code Review / PR Standards and Guidelines

Submitted by admin on

The following is a collection standards, guidelines, and cultural norms

Why Dependency Inversion Is an Ancient Idea

Submitted by admin on

 

When Drupal adopted Symfony’s service container, many developers experienced it as a paradigm shift — a new way of thinking about how software components relate to one another. But note the principle at the heart of this shift: 

 

depend on abstractions, not on concretions

 

This is not a new idea at all. It is one of the oldest and most repeatedly discovered insights in human thought.

Farewell jQuery

Submitted by admin on
jQuery is no longer considered a "must-have" because its primary purpose—standardizing JavaScript across inconsistent browsers (like IE6–9) and simplifying clunky old APIs—has been fulfilled by modern web standards. Most modern browsers now follow the same standards, making jQuery's "compatibility layer" redundant for new projects.

JavaScript ordering in asset libraries in Drupal

Submitted by admin on

Good question — the answer is yes, generally theme JS runs after module JS, but it's not simply "modules before themes" as a hard rule. Here's how it actually works:

The Primary Driver: Library Groups

The group constant is the biggest factor:

Group Constant

Value

Typical Owner

JS_LIBRARY

-100

Core/contrib low-level libs

JS_DEFAULT

0

Modules

Introducing the Node Base Field Display Manager for Drupal

Submitted by admin on

Why I Created Node Base Field Display Manager

The Problem

One of Drupal's long-standing design decisions is that base fields like title, created, and uid don't appear in the Fields UI under "Manage display" by default. While this enforces certain architectural principles about entities, I've always found it confusing and overly restrictive.

The thinking behind this appears to be:

A Gentle Introduction to Configuration Management in Drupal

Submitted by admin on

Drupal's Config API is the standardized system for storing, retrieving, and synchronizing site configuration data (like views,

ACL on Cloud Next: Self-Referential Outgoing Drupal HTTP Requests and Varnish

Submitted by admin on



How It Works

When your Drupal app makes an outbound curl request to its own domain (e.g. calling its own REST API, JSON:API, or any self-referencing endpoint), the request flows like this:

Subscribe to Drupal Core APIs

Recent content