Drupal 9

Automatically redirecting a user after login in a Drupal project is a common requirement. In Drupal 7, you'd probably have used hook_user_login() to handle this, but in Drupal 8/9 there's a more robust way to go about it. There are several contributed modules that offer this functionality, for example the...
The third version of Drupal 9 has been available for 1 month now. New features and improvements in Drupal 9.3 include: The new Olivero UI theme that was added in Drupal 9.1.0 is now stable. A new experimental beta module CKEditor 5 is included with Drupal 9.3.0 primarily for development...
Drupal 9 is finally here. The big question within the Drupal world as we enter this new phase in the evolution of my favourite CMS: Now what? In an environment of Covid-19 quarantines and stay-at-home orders, websites are relied upon to do more heavy lifting than ever before. I'm passionate...
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...
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()...

Before it was a ticket. Now it's a prompt.

Does your Drupal leak?

Tell me what you are working on and what worries you. I'll reply personally and, if I'm not the right person, I'll tell you too.