Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There's functions deprecated for removal in core 10
Proposed resolution
remove the usage, make sure no mentions left
Remaining tasks
review/commit
User interface changes
no
API changes
no
Data model changes
no
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#7 | 3261239-7.patch | 11.49 KB | andypost |
| |||
#7 | interdiff.txt | 1.37 KB | andypost |
#4 | 3261239-4.patch | 10.12 KB | andypost |
| |||
#4 | interdiff.txt | 914 bytes | andypost |
Comments
Comment #2
andypostComment #4
andypostRemove leftover usage
Comment #5
andypostComment #6
longwaveOne more:
Comment #7
andypostThanks, fixed!
Comment #9
andypostlooks unrelated failure
Comment #10
longwaveThanks, this looks ready to go.
Comment #11
quietone CreditAttribution: quietone at PreviousNext commentedI agree I applied the patch and checked didn't find any occurrences of the removed functions.
Comment #12
quietone CreditAttribution: quietone at PreviousNext commentedChecking my review. :-)
The patch is removing a deprecations from \Drupal\search\SearchIndex\SearchIndex.php, so changing title.
The following greps returned nothing, so it is getting all the deprecations from the search module.
I did notice that the Drupal deprecation policy does not have a section for removing/changing a constructor parameter. That has no impact on this being committed. I'llresearch that later.
This looks ready to commit to me. I'll wait 24 hours to allow for comments.
Added credit for longwave
Comment #13
xjmLooks good to me too. The one "gotcha" I checked for was the removal of a hook invocation without a corresponding deprecation of the hook definition, but I confirmed that the invocation has just been moved to
core/modules/search/src/SearchTextProcessor.php
instead. The hook is still an API and still in use.Comment #14
xjmI added https://www.drupal.org/about/core/policies/core-change-policies/drupal-d... -- I guess we never did before because it falls under the "best-effort deprecation warnings for internal code" category.
Comment #16
quietone CreditAttribution: quietone at PreviousNext commentedCommitted to 10.0.x.
Thank you!
xjm and I worked together on a call on this; adding credit for xjm and myself.