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 Implement a Shipping Strategy

    If you sell physical goods, your shipping strategy is one of the most important aspects of your success. Customers shopping online expect to pay as little as possible, but receive products quickly and in perfect condition.  How can you meet these expectations without losing money and set your business up for growth?  Start by establishing…

  • 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…

  • 8 Best Free Security WordPress Plugins — Speckyboy

    Keeping your website secure is a 24/7 job. The right tools help keep watch – even when you can’t. They could be the difference between a hacked site and business as usual. WordPress security plugins are one part of that equation. Along with quality hosting and users practicing secure habits, a plugin can thwart common…

  • How to Use AI to Enhance Your WordPress Blog

    Blogging is still at the heart of WordPress’s strengths. The content management system (CMS) started as a blogging platform and continues to shine. Its goal is to democratize publishing, after all. Those old-school roots are still evident. However, new technologies are here to help you take your blog to the next level. We’re talking (of…