Problem/Motivation

TaxonomyController::getTitle() is not used, and can be mistaken for TaxonomyController::termTitle()

Proposed resolution

Remove TaxonomyController::getTitle()

Remaining tasks

Remove TaxonomyController::getTitle()

User interface changes

None

API changes

TaxonomyController::getTitle() removed

Data model changes

None

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because removed code is not currently used
Issue priority Normal because contrib authors could use the wrong method
Prioritized changes The main goal of this issue is removing unused code.
Disruption Potentially disruptive for contributed and custom modules because the removed method is public.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Eli-T created an issue. See original summary.

Eli-T’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
842 bytes

Patch to remove TaxonomyController::getTitle().

Eli-T’s picture

Issue summary: View changes
Eli-T’s picture

Issue summary: View changes
Eli-T’s picture

Assigned: Eli-T » Unassigned
dawehner’s picture

DuaelFr’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

As seen on IRC that patch needs a tiny reroll as the comment juste after getTitle() changed.

Eli-T’s picture

Assigned: Unassigned » Eli-T
Eli-T’s picture

Assigned: Eli-T » Unassigned
Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
794 bytes

Rerolled

DuaelFr’s picture

Status: Needs review » Reviewed & tested by the community
+++ b/core/modules/taxonomy/src/Controller/TaxonomyController.php
@@ -16,20 +16,7 @@
-
+  ¶

That trailing spaces shouldn't be there but that can be fixed on commit.

Except that, it seems to be OK.
Thank you :)

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Yay dead code removed. Fixed whitespace error on commit. Committed 96d8f25 and pushed to 8.0.x. Thanks!

  • alexpott committed 96d8f25 on 8.0.x
    Issue #2550105 by Eli-T: TaxonomyController::getTitle() is not used, and...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.