Blog
Creating a Batch Service in Drupal 10: how-to and example code
Drupal 10 has introduced a new way of handling batch operations, making it easier to perform complex tasks in the background. In this tutorial, we'll explore how to create a batch service in Drupal 10, complete with example code.
Blog
QueueWorkers in Drupal 10
Learn how to efficiently manage async tasks in Drupal 10 with queue workers, offloading tasks to separate processes and freeing up your main thread for user requests.
Blog
Make oembed fill its frame with their video content in Drupal
I recently had issue styling oEmbed Youtube and Vimeo videos. Thanks to this snippet, they fill in the oEmbed frame instead of having to deal with annoying height issues:
Blog
The reuasable Open in New Window javascript snippet
As modern web development moves towards a more streamlined, dependency-free approach, it's important to revisit some of the common functionalities implemented in the earlier days with libraries like jQuery.
Blog
Deleting specific node types in Drupal 9+ using drush
You can use Drush to delete all nodes of a certain type.
Blog
How to assign a role to a user with drush
I had to use this on one of our projects. A handy command to quickly assign a user a role in Drupal with Drush:
Blog
Migrating from Swift Mailer to Drupal Symfony Mailer
Some steps on how to migrate from Swift Mailer to Drupal Symfony Mailer
Blog
Views theme hook suggestions in Drupal 10
Recently, I stumbled upon a fascinating challenge while working on a Drupal 10 project. My task was to customize the appearance of views and their rows, but I hit a snag.
Blog
Create a path alias programmatically with Drupal 10
I wanted to create an automatic alias for nodes that have a date set. The pattern should be /events/node-title.
Blog
Learning Drupal a a framework is now upgraded to Drupal 10
I upgraded the code for my book and video courses "Learning Drupal as a framework" to Drupal 10.