How to patch Drupal core and contrib modules
This tutorial explains the correct way to apply as-yet unreleased bug fixes and features to Drupal core or a contrib module.
This tutorial explains the correct way to apply as-yet unreleased bug fixes and features to Drupal core or a contrib module.
HTMX is designed as an extension of HTML. It is therefore a declarative markup system that uses attributes. Fetch Contact Instead, we have declarative attributes much like the href attribute on anchor tags and the action attribute on form tags. The hx-get attribute tells htmx: “When the user clicks this button, issue a GET request to /contacts/1.” The hx-target attribute
Aljibe is a set of testing tools and best practices built on top of DDEV to help you develop Drupal projects. Discover all its capabilities and enhance the quality of your projects with ease.
eiriksm.dev: Drupal blog for eiriksm.
With the release of Drupal 11.1, there’s a cool new feature for developers: Hooks can now be implemented as class methods using PHP attributes instead of functions. This change is a major step forward in modernizing Drupal’s codebase. While procedural function-based hooks are still supported (and will be for some time), developers writing new code should strongly consider using the object-oriented (OOP) approach introduced in Drupal 11.1. One of our core commitments at Drupalize.Me is ensuring that our tutorials remain accurate and relevant as Drupal evolves. So we’re working on updating all of our tutorials to take into account the new OOP approach to adding hooks in a module. We’re also aware that procedural hooks have been around for 24 years, and aren’t going to disappear overnight. You’ll see them in example code and existing documentation for a long time to come. So for now we’ll be including both approaches in our content whenever doing so makes sense. You should plan on learning both approaches, and then using the one that makes the most sense given your specific case. Continue reading to learn a bit about the evolution of hooks in Drupal core and how to implement hooks as classes in Drupal 11 in this latest Drupalize.Me blog post by Joe Shindelar.
A step-by-step journey to discover the tricks to memory-manage large PHP arrays.
A DebugDump PHPUnit extension is introduced to capture the output of dump() during the tests, and print it cumulatively at the end of the testrunner execution. This also adds information about where each dump() call happened. The previous approach to print the outcome of dump() while running the test no longer holds in PHPUnit 10 'run in isolation' tests (which are the
A curated list of developer resources related to ActivityPub and the Fediverse.