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.
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.
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.
Pseudo fields are a special type of field that you can add to any content entity type. Let's see how to add this kind of field to the form and entity displays.
A recent tweet by CHX got me thinking. Drupal 8 was released almost 5 years ago, and some things are still a mystery for a lot of developers, including me. Let's explore the various ways of updating field values in Drupal 8 and 9.