In order to avoid frustrations, having a code snippet ready to be copy & pasted comes in handy in many situations when you are working with AJAX and Drupal 8 or 9. This is such an article, so don't expect too much theory -- just some code snippets.
Installing a Drupal distribution is not always smooth sailing. In some cases, a core or module patch can prevent you from properly installing the distribution. Let's explore one way to deal with this situation.
Sometimes having static text for a local task title is not what you want. If you have to make the title dynamic, based on some condition or context, then read this article to find out how to do it in two very different ways.
WebP images have higher quality and smaller file sizes at the same time. This is what makes them great for using on the web where every byte counts, and Drupal 9.2 will support using WebP images out of the box. Let's see how we can use this image format.
Routematch is a Drupal 8/9 service that retrieves the currently active route match object. It's one of the most used services that Drupal offers, so let's see how to use it.
You might ask me why don't I just use the Backup and Migrate module to back up my Drupal database and files, and my response would be why to use a module with around 200 issues and who knows how many lines of code when I can do it with a simple shell script in less than 15 lines of code.
In my previous article, I explained how to integrate the Facebook Pixel with a Drupal webform. I used the Simple Facebook Pixel module to send the purchase event to Facebook. In this article, we are going to see how to send the purchase event by using Google Tag Manager.
In this article, we are going to find out just how easy is to integrate the Facebook Pixel with a webform. This can be useful for example if you are using webforms for a quick checkout instead of using the full checkout flow that Drupal Commerce offers.
Entity Reference and Entity Reference Revisions fields are very similar, but the latter offers more flexibility when it comes to reverting to a previous revision in the case when you have a nested entity. Let's see the easiest way to migrate an existing Entity Reference field to an Entity Reference Revisions field.
Programmatically rendering a view with contextual filters is not something you need to do every day, but it's good to know that you can do it very easily. And you can do it in two different ways.