Problem/Motivation
The Search module still contains code that has been deprecated and is scheduled for removal in Drupal 12.
To keep the codebase clean and ensure forward compatibility, deprecated APIs marked for removal in Drupal 12 should be removed or replaced with supported alternatives.
This issue has a relatively small scope and is suitable for first-time contributors.
Steps to reproduce
- Run a deprecation scan (for example using
phpstan-drupalordrupal-check) on the Search module. - Identify usages marked with
@deprecated in drupal:11.x and removed from drupal:12.0.0. - Review the deprecated methods and replace them with recommended alternatives.
Proposed resolution
- Remove all code in the Search module that is deprecated and scheduled for removal in Drupal 12.
- Replace deprecated function calls or services with supported APIs where required.
- Ensure the module passes automated tests and coding standards checks after cleanup.
- Verify there are no remaining Drupal 12 deprecation notices related to this module.
Remaining tasks
- Identify all deprecated usages in the Search module.
- Replace or remove deprecated code.
- Run tests and confirm no regressions.
- Ensure code style and static analysis checks pass.
- Attach patch or merge request.
- Request review.
User interface changes
None expected.
Introduced terminology
None.
API changes
Removal of deprecated internal APIs within the Search module that were marked for removal in Drupal 12.
No new APIs are introduced.
Data model changes
None.
Release notes snippet
Removed deprecated code from the Search module that was scheduled for removal in Drupal 12.
Issue fork drupal-3574421
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3574421-remove-deprecated-code
changes, plain diff MR !14832
Comments
Comment #2
sivaji_ganesh_jojodae commentedComment #4
sivaji_ganesh_jojodae commentedCreated merge request removing Drupal 12 deprecated code from the Search module. This removes all items marked deprecated and scheduled for removal in Drupal 12.
Comment #5
smustgrave commentedThanks but fyi this issue has the novice tag a was meant for first time users. Your profile shows you have several pages of posts so would kindly ask if you can avoid novice level issues, especially ones that are less then 24 hours old. Thanks!
Comment #6
smustgrave commentedBecause the pipeline isn’t passing
Comment #8
smustgrave commentedCombining with #3575201: Simple deprecation removal from modules part 1