Active
Project:
Toolbar
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2021 at 18:28 UTC
Updated:
21 Sep 2026 at 08:05 UTC
Jump to comment: Most recent
Multiple times in #1869638: Make the menu shown in the administration menu tray configurable, different reviewers (myself included) got confused about both preRenderAdministrationTray() and preRenderGetRenderedSubtrees() being public static methods.
We believe this is no longer a technical requirement, since trusted callbacks should be able to instantiate the class and call regular members.
However, refactoring everything to avoid the static is definitely out of scope over there.
Closely look at the source code in core/modules/toolbar/src/Controller/ToolbarController.php
preRenderAdministrationTray() and preRenderGetRenderedSubtrees() regular public methods on ToolbarController.Nope.
Nothing public (really). Only changes to @internal methods.
Nope.
N/A.
Comments
Comment #7
quietone commentedThe Toolbar Module was approved for removal in #3476882: [Policy] Move Toolbar module to contrib.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3484850: [meta] Tasks to deprecate Toolbar module and the removal work in #3488828: [meta] Tasks to remove Toolbar module.
Toolbar will be moved to a contributed project before Drupal 12.0.0 is released.
Comment #8
quietone commentedThe Toolbar module have moved from core to contrib.