Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

YAML bundles

5 sites Security covered
View on drupal.org

This module allows developers to define content types, fields, and entity settings using YAML files. It streamlines content type management by enabling the creation and updating of fields and bundles through these YAML definitions and helpful Drush commands.

YAML Bundles is a pragmatic approach to streamlining content type management through YAML based Drupal plugins. It allows developers to define fields and content types from custom modules, making it a lot easier to add or update fields and content types.

Plugin types

The module defines 3 important plugin types:

  • Field types
    By defining common field types and their form/display settings (like widgets
    and formatters), you can remove repetitive configuration from the bundle
    definitions.
  • Entity types
    You can define common settings for entity types to remove even more
    repetitive configuration from the bundle definitions. We have also integrated
    support for a bunch of other contrib modules we often use, to save even more
    time.
  • Entity bundles
    You can use the defined fields in entity bundles, complete with customizable
    form and display settings that can be overridden on a field-by-field basis.
    The default settings of the entity types can also be overridden if you need
    to.

The module ships with defaults for the most common field and entity types, but
you can easily override them. We have tests, which we also used to document all
the available plugin settings and options. You can check out the documentation
in the plugin definitions of the `yaml_bundles_test` module.

Drush commands

To use the power of YAML bundles, we’ve added a couple of helpful Drush
commands that will revolutionize your content type management.

Create bundles from YAML definitions

drush yaml-bundles:create-bundles
This command uses the defined plugins to (re)create all the specified bundles,
fields, and settings. Whether you're starting from scratch or optimizing an
existing configuration, this command ensures the seamless generation of all
your content types with a single command.

Create a bundle using drush

drush yaml-bundles:create-bundle
You don’t have to use the bundle plugins if you don’t want to. For those who
prefer a more hands-on approach, this command offers the flexibility to create
a new content type directly through Drush.

Create a field using drush

drush yaml-bundles:create-field
This command simplifies the process of adding new fields to existing content
types using default plugin configurations. With the ability to customize form
and view displays, this command makes adding fields to different content types
a lot easier.

Activity

Total releases
1
First release
Sep 2025
Latest release
9 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.6 Stable Sep 28, 2025