Issue #3106654 by kiamlaluno: hook_toolbar() documentation still makes reference to toolbar_pre_render()

merge-requests/2419/head
Alex Pott 2020-01-21 09:41:50 +00:00
parent dc86e91e61
commit f966ce6eaf
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 2 additions and 2 deletions

View File

@ -34,14 +34,14 @@ use Drupal\Core\Url;
* - '#weight': Optional. Integer weight used for sorting toolbar items in * - '#weight': Optional. Integer weight used for sorting toolbar items in
* administration bar area. * administration bar area.
* *
* This hook is invoked in toolbar_pre_render(). * This hook is invoked in Toolbar::preRenderToolbar().
* *
* @return * @return
* An array of toolbar items, keyed by unique identifiers such as 'home' or * An array of toolbar items, keyed by unique identifiers such as 'home' or
* 'administration', or the short name of the module implementing the hook. * 'administration', or the short name of the module implementing the hook.
* The corresponding value is a render element of type 'toolbar_item'. * The corresponding value is a render element of type 'toolbar_item'.
* *
* @see toolbar_pre_render() * @see \Drupal\toolbar\Element\Toolbar::preRenderToolbar()
* @ingroup toolbar_tabs * @ingroup toolbar_tabs
*/ */
function hook_toolbar() { function hook_toolbar() {