Release Day: The Drupal Recipes API

We recently completed a new set of tutorials covering the Drupal Recipe API. My interest in Drupal recipes began while I was working on documentation for the Drupal CMS User Guide, which relies heavily on recipes to provide its features. Drupal CMS is just Drupal core plus a curated set of contributed modules, preconfigured to deliver common features following best practices—and recipes are what make that possible.

Aside: Drupal CMS calls them “recomended add-ons” but behind the scenes they’re recipes. If you’re curious to see recipes in action install Drupal CMS and enable one or more of the recommended add-ons.

Recipes (see the Recipes initiative) are a way to package up configuration that can be applied to a Drupal site. Much like the recipes in a cookbook provide instructions for how to prepare a meal, Drupal recipes provide instructions for how to prepare a feature. Combine a few recipes and you’ve got the makings of a feast (or a CMS tailored to your specific needs).

Recipes allow experienced Drupal developers to package up their knowledge and share it with others. They also allow site builders to apply recipes to their sites without needing to understand the underlying configuration. If you’ve built a Drupal site before, you’ve probably configured a content type for blog posts or events, and added Views to display those items. In fact, you’ve probably done this multiple times across multiple sites. Over time, you develop patterns and best practices—approaches to configuring Drupal that work well for your clients or your team. Recipes give you a way to capture those patterns, share them, and reuse them again and again.

The result: faster development and more time for site builders to focus on what’s unique about their site—and the value they bring to their clients.

In this course, we’ll dive into the Drupal Recipe API and explore how to create and use recipes to capture the patterns and best practices you’ve developed—saving you time and effort in the long run.

Explore the Drupal Recipes course now.

What you’ll learn

This course contains content for both site builders and developers. Site builders will learn how to apply recipes to their sites, while developers will learn how to create and use recipes.

We cover:

  • What Recipes are and the problem they aim to solve
  • The Configuration Actions API
  • How to find and apply a recipe
  • The anatomy of a recipe, and how to create your own recipes
  • How to discover and use existing configuration actions in a recipe
  • How to define custom configuration actions

Tutorials in this course

Check out the full course here: Drupal Recipes.

We’d love to hear what you think! Share your feedback with us in the comments, or let us know what else you’d like to see in future tutorials.

Similar Posts

  • How to Monitor Brand Mentions in ChatGPT

    Ask ChatGPT “What’s the best (your product category)?” right now. Does your brand come up?  If you don’t know, that’s a problem. ChatGPT influences millions of product decisions every day—and unlike Google, it gives you zero impressions data, no Search Console, and no built-in analytics. In this guide, I’ll show you how to monitor your brand…

  • More Videos Added to Module Developer Guide Tutorials

    This week, we’ve added 7 new videos to existing tutorials in our Module Developer Guide. The Module Developer Guide was created for developers familiar with PHP but new to Drupal module development. Updated tutorials — now with video! Here’s a list of tutorials that now have videos embedded. Select the + icon to add the…

  • AI is changing how shoppers find your products

    AI is already reshaping how shoppers discover, compare, and purchase products. Here’s what’s happening, why it matters, and what WooCommerce merchants should know right now. If you sell online, the way your customers find you is changing. Half of all consumers now use AI when searching the internet, according to McKinsey. Shoppers are asking ChatGPT…