From f966ce6eaff07bb899dd2df93b25c75463c4d81b Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 21 Jan 2020 09:41:50 +0000
Subject: [PATCH] Issue #3106654 by kiamlaluno: hook_toolbar() documentation
 still makes reference to toolbar_pre_render()

---
 core/modules/toolbar/toolbar.api.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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