Once upon a time in the cozy world of Drupal, there lived three humble numbers: 0, 1, and 2. They had an important job — helping developers set the preview mode for content types.
When working with Laravel and Drupal, I noticed something striking: defining web routes feels vastly different between the two. Laravel offers what feels like an endless number of ways to register routes, while Drupal provides a single, standardized approach. Let me break this down.
1. How Laravel Defines Web Routes
In Laravel, routes for the web layer are typically defined in the routes/web.php file. But because of Laravel’s flexibility, there are many ways and places to register them:
New in Drupal 11: Export Content to YAML with the content:export Command
With the release of Drupal 11.3.0, a powerful new tool has landed in core: the content:export Drush command. This feature simplifies how developers generate YAML-formatted content for installation recipes, testing, and automation pipelines.
Modern websites often need scalable and reliable file storage solutions for images, videos, PDFs, and other assets. One of the best tools for this is Google Cloud Storage (GCS). In this article, we’ll show you how to integrate GCS with Drupal so that all your files are stored and served directly from Google’s cloud infrastructure.
Your YAML defines two Drupal routes for enabling and disabling blocks, using the controller BlockController::performOperation with the operations enable and disable.
🔄 Updating hook_help() When Migrating from Drupal 8 to Drupal 11.2
With the release of Drupal 11.2, developers are encouraged to modernize their codebase by replacing legacy hooks with more structured, object-oriented alternatives. One of the most commonly used hooks in legacy modules is hook_help() — the function that adds helpful module documentation to the /admin/help page.
In Drupal, Paragraphs, Layout Builder, and custom templates are all tools for controlling how content is structured and displayed — but they serve different purposes and are used in different contexts. Here's a clear breakdown of each and when to use them:
✅ 1. Paragraphs
❓ What it is:
The Paragraphs module lets site builders define reusable, flexible content components (like “Image + Text”, “Slider”, “Video”, etc.) that editors can mix and match in a structured way within content types.
If you need to retrieve data from 10,000 nodes in Drupal, the most efficient way is to load them in batches, not one-by-one in a loop and not all at once.