We removed all the BC layers in #3096976: Remove taxonomy.module BC layers but we missed two methods that weren't tagged correctly:
/**
* Removed reference to terms from term_hierarchy.
*
* @param array $tids
* Array of terms that need to be removed from hierarchy.
*
* @todo Remove this method in Drupal 9.0.x. Now the parent references are
* automatically cleared when deleting a taxonomy term.
* https://www.drupal.org/node/2785693
*/
public function deleteTermHierarchy($tids);
/**
* Updates terms hierarchy information with the hierarchy trail of it.
*
* @param \Drupal\Core\Entity\EntityInterface $term
* Term entity that needs to be added to term hierarchy information.
*
* @todo remove this method Drupal 9.0.x. Now the parent references are
* automatically updates when when a taxonomy term is added/updated.
* https://www.drupal.org/node/2785693
*/
public function updateTermHierarchy(EntityInterface $term);
This is used in 3 contrib modules: http://grep.xnddx.ru/search?text=deleteTermHierarchy&filename= - so can we actually remove this or do we need to do the full trigger_error() deprecation dance?
This was originally flagged to be done in #2785693: Follow up #2543726: @todo deleteTermHierarchy and updateTermHierarchy but this was duplicated against a different issue and then never completed.
| Comment | File | Size | Author |
|---|
Issue fork drupal-3110671
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:
- 3110671-Remove-remaining-deprecated-code
changes, plain diff MR !6883
Comments
Comment #2
longwaveComment #3
longwaveComment #4
andypostAs no usage left and methods are empty, looks good
Comment #5
catchWe need to properly deprecate these in 8.8.x/8.9.x so they can be removed. Can be a spin-off issue to complete the deprecation leaving this one for removal.
I think that probably needs to be a 10.x deprecation at this point but will get a second opinion. Were these included in a change record?
Comment #6
longwaveChange record for the related issue was https://www.drupal.org/node/2936675 but doesn't mention deprecation or that these methods are no-ops now.
I guess as they do nothing anyway leaving it until 10.x is not really a problem.
Comment #7
longwaveComment #8
longwaveOpened #3111785: Properly deprecate TermStorage::deleteTermHierarchy() and ::updateTermHierarchy()
Comment #9
wim leersComment #10
xjmIt's too late to do the removal in D9 at this point, so we'll need to deprecate it in 9.1.x and remove it in 10.0.x. We probably don't actually need an issue open for the removal, since it'll get swept up in the D10 deprecation at this point, but moving to 10.0.x for now.
Comment #11
grcwolfCould this be closed as a duplicate of #3110671 now?
Comment #12
andypostThe issue is targeted for 11.0.x according codebase for re-title and NW for patch
Comment #13
andypostproper patch after #3111785: Properly deprecate TermStorage::deleteTermHierarchy() and ::updateTermHierarchy()
Comment #14
longwave11.0.x is not open for commits yet, but the patch is ready for when that happens.
Comment #15
gábor hojtsyUpdating title, tags and version number based on recent announcement at https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-...
Comment #16
quietone commentedThis needs an MR.
Comment #17
quietone commentedComment #18
wim leersPatch in #2 should be converted to an MR.
Comment #21
samitk commentedHi Wim Leers,
Rerolled and MR has been created for #2, Please review.
https://git.drupalcode.org/project/drupal/-/merge_requests/6883
Thanks
Samit K.
Comment #22
smustgrave commentedFailed checks.
Comment #23
andypostThere's more things to remove
Comment #24
andypostFixed CS and removed deprecated plugin,
term_accesshas own issue #3261261: Properly deprecate term_access query tagComment #25
smustgrave commentedApplied MR searched for "@deprecated" and "from drupal:11" and all instances appear to be replaced.
Comment #27
catchCommitted/pushed to 11.x, thanks!
Comment #29
quietone commentedComment #30
quietone commented