ModuleHandler->alterDeprecated does not properly handle deprecated OOP hooks

Created on 23 October 2024, about 2 months ago

Problem/Motivation

When a deprecated hook is altered using a hook attribute instead of a procedural hook the method is not stored for the deprecation.

Steps to reproduce

Convert the test module deprecation_test to OOP hooks and core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php will fail.

Proposed resolution

Handle both alter deprecations for both OOP and procedural hooks.

Remaining tasks

MR coming soon.

User interface changes

N/A

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

base system

Created by

πŸ‡ΊπŸ‡ΈUnited States nicxvan

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