Nginx config file for this site didn't have gzip compression enabled. I copied the default file from here Nginx Recipes, updated server_name, and site path, and never bothered to check if compression is enabled or not.
Several examples of the cache behavior in different possible cases.
Twig Render This is a module that allows you to render fields and entities inside your Twig templates. In this article, we'll see an example of usage.
Implementing Out of Stock feature in Drupal Commerce 2.x is easy. Unfortunately, you can't just enable this feature, because Commerce doesn't support it out of the box. You have to get your hands dirty and write some code.
Let's see how to loop through referenced entities like paragraphs and nodes.
Quick tip on how to set date fields programmatically in Drupal 8.
As of writing this blog post, the Menu Token module for Drupal 8 is still in the alpha version and it might not work in all cases. That's why having an alternative solution is great. The alternative to using the Menu Token module for Drupal 8 is to use Menu link plugins.
As this year draws to an end and another one is only 24 hours away, I reflect on the best things that happened to me.
Inline Twig template is a quick and easy way to use Twig syntax in render arrays. I usually use this render element type to add JS scripts to the <body> section of Drupal pages, but you can also use it in controller responses, custom blocks and so on.