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...
Jun
Jun
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...
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()...
Jun
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...
Nov
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...
Apr
Apr
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...

Need a Drupal Expert?

Senior Drupal developer, freelance, specialized in what's hardest: migrations, multilingual sites, SaaS platforms and Stripe integration. I leverage AI to cut delivery times and costs, with expert review on every line of code.

No agency, no middlemen. Direct contact with the one who does the work.