Allow deprecating alter functions from themes

Created on 5 October 2023, about 1 year ago

Problem/Motivation

#2866779: Add a way to trigger_error() for deprecated hooks added a way to deprecate alter hooks within modules. However, this capability doesn't exist in \Drupal\Core\Theme\ThemeManagerInterface making it difficult to deprecate alter functions from themes.

Proposed resolution

Add API to \Drupal\Core\Theme\ThemeManagerInterface similar to what we have in \Drupal\Core\Extension\ModuleHandlerInterface::alterDeprecated.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component
Theme 

Last updated about 1 hour ago

Created by

🇫🇮Finland lauriii Finland

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

Comments & Activities

Production build 0.71.5 2024