Remove workflow dependency from entity form displays

Created on 23 July 2025, 4 days ago

Problem/Motivation

When running the following command to clean up the configuration in GovCMS, the field widgets were removed.

drush civictheme_govcms:remove-config --preserve=user_roles

Steps to reproduce

Tracked it down to the fact that we have the following dependency:

config:
- block_content.type.civictheme_component_block
- field.field.block_content.civictheme_component_block.field_c_b_components
- workflows.workflow.civictheme_editorial

In my testing, for some reason, workflows.workflow.civictheme_editorial was changed to workflows.workflow.editorial (which is the default workflow)

Then, when you run drush civictheme_govcms:remove-config, which removes the workflow, Drupal deletes all configurations that depend on the workflow.

Which is core.entity_form_display.*.yml

Proposed resolution

The fix for this is to remove the dependency from core.entity_form_display.*.yml.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia RichardGaunt Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024