Drupal 8

Drupal 8 dramatically improved the capabilities for creating multilingual websites. The content translation was moved to the core and an improved architecture made it much easier to internationalize complex sites. However, the language switcher could use some improvements. Here's how we customized it. As a digital agency with Catalan origins...
Read more
As ever-evolving Drupal developers, we've been in the process of moving towards a Composer-based workflow for managing our Drupal project code bases. While it is (usually) an easy leap to move from "drush dl" to "composer require" for Drupal contributed modules and themes, there is another significant opportunity for us...
Read more
Doing this for a particular order is pretty straightforward. All you need to have is the ID of the coupon code: // This is the ID of the coupon code you want to add to the order. $coupon_id = 1; /** @var \Drupal\commerce_order\Entity\OrderInterface $order */ $order = \Drupal\commerce_order\Entity\Order::load(1); $order->get('coupons')->appendItem($coupon_id); $order->save()...
Read more
Today I had a little problem trying to update a website in Drupal 8. This website has always had a composer in version 1, and I have already updated it several times. But I'm just starting to use docker images for local development with composer v2. Today I got the...
Read more
Component-based theming is becoming very popular nowadays due to several reasons. The most important ones are reusability and portability of components. Pattern Lab is a front-end framework that uses an atomic design architecture to implement the component-based design. In this article, we will discuss more about Pattern Lab and how...
Read more
This year 2021 seems to be the end of "third party cookies". For some time (even years) several browsers have been blocking them, but Chrome was not willing to do so. The reason is simple, third-party cookies are widely used for online advertising, they are an attack on the privacy...
Read more

Have Any Project in Mind?

If you want to do something in Drupal maybe you can hire me.

Either for consulting, development or maintenance of Drupal websites.