How to create Queue Workers
In my opinion queue workers are often overlooked and underutilized as a way of dealing with background tasks. In the bad ole days of Drupal, we were stuck with hook_cron and a single wget call to cron.php with a so-called “secure key.” This post is not a “history of cron in Drupal” post. Over time, modules were created to make cron more maintainable, and Drush commands made the wget call obsolete.
Drupal 9: Views bulk operation
Views bulk operations are a great tool for mass content operations in Drupal, and creating a bulk action is pretty simple. For this post, we’ll set ourselves the task of creating a bulk action for adding tags to the selected nodes. I have created a basic installation for my Drupal 9 Code Examples, and we’ll be using this as a baseline. Disclaimer this example does not aim to meet all possible implementations but is targeted at the specific installation.