In #1847198: Update the structure returned by hook_toolbar() we agreed on the structure that should be returned by hook_toolbar(). We still have to decide how much processing will be done in toolbar_pre_render() after hook_toolbar() is invoked and before hook_toolbar_alter() is invoked. This will affect what changes are possible using hook_toolbar_alter().
For use cases, see the Toolbar example module at http://drupal.org/sandbox/benji/1862108 and #1847198: Update the structure returned by hook_toolbar().
Comments
Comment #8
nod_Comment #16
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.