Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

The purpose of this module is to ensure any content that is required by configuration exists when that configuration is loaded.

Deploying content and configuration changes together is hard

It can be hard to coordinate the deployment of both content and configuration changes together.

A typical scenario:
1. A site's source code - along with its exported configuration - is stored in version control.
2. A developer wants to add a custom block to a page. They do this locally, export the configuration and commit the changes.
3. The configuration refers to a block with a UUID. This block only exists on the developer's instance.
4. The new configuration is deployed, but the block needs to be created separately with that same UUID.

This module aims to solve that.

How does this module work?

Go to Administration, System, Required content. For each content dependency, you can dictate what should happen if that dependency is missing. You can specify whether to create a missing entity automatically or not, and any properties a newly created entity should have.

How does this module differ from default content?

The Default Content module has a different use case: it gives module/profile authors a way to ship with default content as well as configuration.

This module can be thought of as providing some rules to dictate what happens if you import configuration that depends on missing content.

How ready is this module?

This module is in the early stages of development. You probably don't want to rely on it in production just yet. That said, you can remove this module at any time without any adverse effects.

Feedback is very welcome!

Please note that until there is a stable 1.0 release there will be no upgrade path.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Mar 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.x-dev Dev Mar 18, 2023