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

  1. Run a deprecation scan (for example using phpstan-drupal or drupal-check) on the Search module.
  2. Identify usages marked with @deprecated in drupal:11.x and removed from drupal:12.0.0.
  3. 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

Command icon 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:

Comments

smustgrave created an issue. See original summary.

sivaji_ganesh_jojodae’s picture

Assigned: Unassigned » sivaji_ganesh_jojodae
Issue summary: View changes

sivaji_ganesh_jojodae’s picture

Assigned: sivaji_ganesh_jojodae » Unassigned
Status: Active » Needs review

Created merge request removing Drupal 12 deprecated code from the Search module. This removes all items marked deprecated and scheduled for removal in Drupal 12.

smustgrave’s picture

Thanks 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!

smustgrave’s picture

Status: Needs review » Needs work

Because the pipeline isn’t passing

smustgrave’s picture

Status: Needs work » Closed (duplicate)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.