Problem/Motivation

Usage of router builder in Drupal\Core\Menu\LocalTaskManager was removed in #356399: Optimize the route rebuilding process to rebuild on write but the service is still injected

Proposed resolution

Remove the router builder service from Drupal\Core\Menu\LocalTaskManager

User interface changes

none

API changes

none

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because we are removing dead code.
Issue priority Normal because Drupal will work whether or not it is removed.
Prioritized changes The main goal of this issue is removing dead code, and should be a prioritized change
Disruption Disruptive for any classes that extend LocalTaskManager, which will need to update their constructors.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

willzyx’s picture

Status: Active » Needs review
FileSize
4.5 KB

Status: Needs review » Needs work

The last submitted patch, 1: remove_unused-2501355-1.patch, failed testing.

willzyx’s picture

Status: Needs work » Needs review
FileSize
785 bytes
5.41 KB

Removed dead code in tests

Status: Needs review » Needs work

The last submitted patch, 3: remove_unused-2501355-3.patch, failed testing.

willzyx’s picture

Removed more unused/untested code in tests

willzyx’s picture

Status: Needs work » Needs review
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Good catch!

willzyx’s picture

Issue summary: View changes

Added beta evaluation

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Nice find. Committed 78f0760 and pushed to 8.0.x. Thanks!

  • alexpott committed 78f0760 on 8.0.x
    Issue #2501355 by willzyx: Remove unused router.builder service from...

Status: Fixed » Closed (fixed)

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