Exclude entity types from purge (compatibility with Structure Sync)

Created on 23 May 2024, 7 months ago
Updated 19 July 2024, 5 months ago

Problem/Motivation

Menus, taxonomy terms, and custom blocks are considered to be content in Drupal. This means they are purged when loading the content fixtures. Structure Sync is a module which can define these content entities as configuration. This means they should not be purged anymore when loading content fixtures.

As a workaround to this problem, one can simply re-run the Structure Sync import after each loading of the content fixtures. In my use-case, this would only waste time during testing because the synced structures are never changed in any test.

Proposed resolution

Implement a content type whitelist during purging. Content types in this whitelist would not be purged.

Remaining tasks

  1. Discuss whether this solution fits this module
  2. Review/refine solution
Feature request
Status

Needs review

Version

3.1

Component

Code

Created by

🇩🇪Germany tgauges

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024