drupal

#! code: Drupal 11: Using Data Transfer Objects With The Queue API

When writing data to the queue database system Drupal will convert the information to a string using the PHP serialize() function. When the information is pulled out of the database the queue system will unserialize() the data to convert it back into the original information.

When you first start using the queue system you will probably use an array or the PHP stdClass object to store the information on your queue. Whilst this works, the information they contain is pretty free form and makes testing or working with the data a little cumbersome.

A much better way of storing data is by creating an object of a known type and using that as the storage medium for the queue.

This technique of using an object to pass data around different parts of your system is known as Data Transfer Objects (DTO). This allows you to present data in a unified way across your application. This is a design pattern that standardizes how a particular bit of data is passed around, without having to resort to using arrays to accomplish the same job.

In this article we will look at creating a DTO for use in the queue API in Drupal, and how the use of DTOs can protect our queue processing from errors by rejecting items from the queue.

All of the code seen in this article is available on the accompanying GitHub repository that shows a few examples of running the Queue API in Drupal.

Creating A DTO

A DTO in PHP is just a normal class, the key difference is that we use the readonly class (since PHP 8.2) syntax, which means that all properties can only be written once (in the constructor). We do this to prevent the data in the object from being altered after it is created.

It is generally a good idea to create interfaces for our objects so that we can check to make sure that

Read more

Skynet Technologies USA LLC Blogs: Drupal 7 to 11 Migration: Key Checklist and Challenges to Address

The Drupal platform has been a reliable choice from long for businesses and organizations seeking robust and customizable content management solutions. However, as technology evolves, so does the need for modernized systems. Since Drupal 11 is early, migration is inevitable. Importantly, migrating from Drupal 7 to 11 is more than just an upgrade. It’s a significant leap that brings new…

Droptica: How to Add Locations on Maps in Drupal? With Geofield and Leaflet Maps

Image removed.

In the following blog post, I’ll present a complete guide on creating a website with a map and vendor locations in Drupal. This solution is based on free tools such as OpenStreetMap, Geofield, and Leaflet modules. Most importantly, you don't need programming knowledge to achieve this effect - you can configure everything through the Drupal interface. I encourage you to read the article or watch the video in the ”Nowoczesny Drupal” series.

The Drop Times: Revitalizing Drupal’s Admin Experience: A Closer Look at the Ongoing Redesign Journey

Drupal’s Admin UI is on the brink of a transformative overhaul. From embracing new navigation flows to refining design elements, the project aims to make Drupal more accessible for both seasoned veterans and newcomers. Driven by a dedicated team, this redesign is set to reshape the content management experience in a big way.

Skynet Technologies USA LLC Blogs: Top factors influencing the cost of Migrating from Drupal 7 to 11 for your business!

Steps taken proactively are the ones that lead to positive outcomes! If a website’s migration from Drupal 7 to 11 is still pending, don’t wait now because Drupal 7's End-of-Life date is January 5, 2025. And after this deadline, websites running on Drupal 7 will be vulnerable in every aspect (security, functionality, and compliance). Drupal, a trusted content management system (CMS), has been a…

The Drop Times: Future-Proofing Drupal with Uniform Composable DXP

In an ever-evolving digital landscape, Drupal’s robust backend capabilities remain a standout. Yet, many content teams still struggle with the platform’s limited built-in visual editing tools. Enter Uniform’s Visual Workspace—a ground-breaking solution that bridges this gap by combining Drupal’s tried-and-true backend strengths with a truly modern, intuitive frontend editing experience. This integration unlocks a new era of headless and composable digital experiences, enabling marketers and developers to deliver fast, personalized, and future-proof web properties.

Drupal Association blog: Reflecting on Our Journey: HeroDevs in the Drupal World

The Drupal Association has published this guest blog on behalf of HeroDevs.

As the end-of-life (EOL) for Drupal 7 approaches on 5 January 2025, HeroDevs has embraced the challenge of stepping into the Drupal community and providing vital support for this well-loved but aging platform. Since onboarding our first customer in September, we’ve had the unique opportunity to assist organizations relying on Drupal 7. It’s been a year of learning, adapting, and preparing—a journey filled with both rewarding and challenging moments.

Engaging with the Drupal Community

Our journey into the Drupal world has been enriched by our participation in various community events. Over the past year, we’ve attended gatherings like DrupalCon Portland, GovCon, DrupalCamp Asheville, and BadCamp, where we’ve had the privilege of connecting with other Drupal professionals and sharing our insights. We’ve also taken to the stage at events like Drupal GovCon and EvolveDrupal in Atlanta to share our expertise and discuss strategies for navigating Drupal 7’s EOL.

These events have not only deepened our understanding of the community but also allowed us to build meaningful relationships with fellow developers, site owners, and contributors. The collective knowledge and passion within the Drupal ecosystem have been invaluable as we continue to refine our solutions and expand our support.

Our First User Case Study

One of our earliest adopters came to us with a critical need: ensuring the continued functionality of their mission-critical Drupal 7 site. They required consistent updates and security patches to maintain stability and compliance. By addressing these needs, we were able to keep their site secure and operational without disruption. This successful partnership laid the foundation for our approach to supporting Drupal 7 users and solidified our commitment to meeting their unique challenges.

Challenges We’ve Encountered

Entering the Drupal world has been an eye-opening experience. One of the most notable challenges has been understanding the diverse needs of Drupal 7 users. Each organization has its own use cases, custom modules, and integrations. Our initial onboarding revealed just how varied these needs could be, pushing us to adapt our processes and broaden our expertise.

Another significant hurdle was navigating the intricacies of Drupal 7’s ecosystem while ensuring that our solutions met the community’s high standards. For example, we discovered that certain modules had been neglected for years, with no clear documentation or consistent coding practices.

Adjustments We’ve Made

One of the most critical adjustments we’ve made has been streamlining our onboarding process. Early on, we faced minor issues like a typo in the curl script used to integrate our services. While the fix was straightforward, it highlighted the importance of rigorous testing and documentation. Today, our onboarding process is smooth, and all our early adopters have transitioned seamlessly to our solutions.

We’ve also refined our support model to include guidance for custom and legacy modules. While these aren’t covered under our standard SLA, providing tailored advice has helped our clients maintain compatibility and functionality across their tech stacks. This extra layer of support has strengthened our relationships with customers and reinforced their confidence in our solutions.

Preparing for the EOL

With the EOL for Drupal 7 fast approaching, our focus has been on ensuring a seamless transition for our clients. We’ve prioritized:

  • Proactive Module Maintenance: We’ve forked and maintained unsupported modules, addressing vulnerabilities and ensuring compatibility with evolving web standards.

  • Customer-Centric Support: By collaborating closely with our clients, we’ve been able to anticipate their needs and deliver solutions tailored to their unique requirements.

  • Comprehensive Testing: Every solution we implement undergoes rigorous testing to prevent issues and ensure long-term stability.

Looking Ahead

As we reflect on the past year, it’s clear that stepping into the Drupal world has been both a challenge and a privilege. We’ve learned to navigate an intricate ecosystem, adapt to the needs of a diverse user base, and provide robust support during a pivotal time for Drupal 7 users. Our commitment to keeping sites secure, functional, and future-ready has positioned us as a trusted partner in the community.

We’re excited to continue supporting our clients through the EOL transition and beyond. Whether it’s maintaining unsupported modules, addressing compatibility challenges, or providing expert guidance, HeroDevs is here to ensure that Drupal 7 users can move forward with confidence. Together, we’re proving that even as official support wanes, the Drupal community can thrive.

Drupal Starshot blog: A cookie cutter for a modern, flexible CMS' launch

Drupal has a long history of community-made plush toys, baby bibs, stress balls, tree ornaments, card games, the list goes on. But these were often hard to get. What if you could print it at home or a 3d printing service nearby?

I accidentally stumbled onto Klara Binon's work on a Drupal logo cookie cutter model. Asked her over the holidays to update it for the current Drupal (CMS) logo and now the updated cookie cutter model is available in the bgcode format

Image removed.

Klara also shared this recipe for cookies that keep their shape:

  • 150gr sugar
  • 50gr vanilla sugar
  • 200g salted butter
  • 1 egg
  • 400gr flour
  • Some grated lemon peel

Once baked, resulting cookies will look and taste great. Finish with your favourite icing! 

Image removed.

Wanna bring some to your local Drupal CMS launch parties?

The Drop Times: Pantheon Content Publisher: Working Back to the Roots of Innovation

In this interview, Chris Yates and Roland Benedetti of Pantheon discuss the innovative Content Publisher tool. Designed to integrate Google Docs with platforms like Drupal and WordPress, it streamlines workflows, supports multi-language content, and uses AI to optimize publishing processes. Explore how this tool transforms content operations for modern teams.