Drupal

Drupal Acquia Azure CI/CD pipeline - Conclusion

27 October 2025
You have unlocked the ultimate CI/CD trifecta: Reliability, Speed, and Stability.

This architecture delivers a robust, production-grade asset:
- Reliability: Guaranteed by the "Locked Box" Docker image.
- Speed: Achieved by the "Factory & Assembly Line" and critical gzip optimizations.
- Stability: Ensured by the 100% stable manual Docker networking for integration tests.

Combined with best-practice Branch Policies, this is the last Drupal CI/CD pipeline you'll ever need to build. Fast, stable, and ready for production!

Core Concept 2: The "Factory & Assembly Line" (Why Two Pipelines)

27 October 2025
Stop wasting 2-3 minutes rebuilding your Docker image on every commit!

The secret to a fast pipeline is splitting your work into the "Factory & Assembly Line."
- The Factory: Runs rarely (only when your Dockerfile changes) to build the slow, reliable "Locked Box" image.
- The Assembly Line: Runs constantly (on every commit) but skips the Docker build entirely. It simply downloads the pre-built image from the Factory and uses it to instantly run your fast code tests.

The result? Your daily pipeline runs are dramatically faster, only executing the work that matters: testing your code.

The Factory & The Assembly Line: A High-Performance Drupal CI/CD Pipeline for Acquia and Azure DevOps

27 October 2025
Unlock high-speed, rock-solid Drupal CI/CD in Azure DevOps!

Tired of slow, unreliable pipelines? Discover the "Locked Box" Docker strategy and our "Factory & Assembly Line" two-pipeline approach to achieve the perfect balance of speed and reliability.

Learn how to:
- Build a consistent environment with a custom Docker image.
- Slash build times by only rebuilding what you need.
- Master robust Docker-in-Docker integration testing.
- Get complete, fast YAML templates for building, testing, and deploying to Acquia.

Stop sacrificing stability for speed. Build the fast, maintainable Drupal pipeline you need today!

Unknown twig time_diff filter error

9 January 2025
Getting an "Unknown filter time_diff" error in your Drupal Twig templates? That's because it isn't a native Drupal filter!

This guide provides the complete, step-by-step solution to implement a custom time_diff Twig filter in Drupal 9/10. Learn how to create a simple custom module, define a service for dependency injection (using the core datetime.time service), and write the PHP logic to calculate and format the time difference (e.g., "5 minutes ago"). This is the clean, maintainable way to extend Twig in Drupal.