Add ThemeUninstallValidatorInterface similar to ModuleUninstallValidatorInterface

Created on 2 October 2025, 20 days ago

Problem/Motivation

ModuleUninstallValidatorInterface services are the recommended way (see https://www.drupal.org/node/2392677 ) to prevent uninstalling a module if there are e.g. config dependencies that should avoid uninstalling the module.

However, we lack something similar for themes, while e.g. config can depend on themes and we might want to prevent uninstalling them.

Proposed resolution

Add ThemeUninstallValidatorInterface similar to ModuleUninstallValidatorInterface.
Evaluate if we can refactor ModuleUninstallValidatorInterface to use a common ExtensionUninstallValidatorInterface.

Remaining tasks

TBD

User interface changes

TBD

Introduced terminology

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

Feature request
Status

Active

Version

11.0 🔥

Component

extension system

Created by

🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺

Live updates comments and jobs are added and updated live.
  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

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