Add on dependency removal to block plugin

Created on 18 January 2021, almost 4 years ago
Updated 18 January 2023, almost 2 years ago

Problem/Motivation

If block is dependent on vocabulary and/or menu it will be entirely deleted

Steps to reproduce

1. Create custom plugin block.
2. Calculate dependencies
3. Try removing dependent entity

Proposed resolution

Add onDependencyRemoval function call from block config entity, similarly to calculateDependencies

Release notes snippet

Very simmilar to #2260457

Feature request
Status

Needs work

Version

10.1

Component
Configuration entity 

Last updated 3 days ago

Created by

🇷🇸Serbia holo96

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

No activities found.

Production build 0.71.5 2024