Provide PRE- event hooks for import, revert and delete commands

Created on 13 May 2020, over 4 years ago
Updated 11 May 2023, over 1 year ago

Problem/Motivation

Sometimes certain actions need to be done before a revert/import or delete is actioned.

My specific use case is with the Features modules while working on a distribution profile with configurations with dynamic bundle dependencies , and needing the ability to programmatically modify the $value of the config before reverting such that certain child properties are ignored and not reverted during development.

Proposed resolution

Add appropriate PRE_IMPORT, PRE_REVERT and PRE_DELETE hooks.

Remaining tasks

User interface changes

N/A

API changes

New event hooks:

  • ConfigRevertInterface::PRE_IMPORT
  • ConfigRevertInterface::PRE_REVERT
  • ConfigDeleteInterface::PRE_DELETE

Data model changes

N/A

Feature request
Status

Fixed

Version

2.0

Component

Base module

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024