Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / toolbar / toolbar.api.php
index b6230827441dc995b5b57c67c5cd6d5f6ebffbf3..eb087d36e28a88d0b38e08c70953e94a2c863f7f 100644 (file)
@@ -109,7 +109,7 @@ function hook_toolbar() {
       '#heading' => t('Shopping cart actions'),
       'shopping_cart' => [
         '#theme' => 'item_list',
-        '#items' => [ /* An item list renderable array */ ],
+        '#items' => [/* An item list renderable array */],
       ],
     ],
     '#weight' => 150,
@@ -152,10 +152,10 @@ function hook_toolbar() {
 /**
  * Alter the toolbar menu after hook_toolbar() is invoked.
  *
- * This hook is invoked by toolbar_view() immediately after hook_toolbar(). The
- * toolbar definitions are passed in by reference. Each element of the $items
- * array is one item returned by a module from hook_toolbar(). Additional items
- * may be added, or existing items altered.
+ * This hook is invoked by Toolbar::preRenderToolbar() immediately after
+ * hook_toolbar(). The toolbar definitions are passed in by reference. Each
+ * element of the $items array is one item returned by a module from
+ * hook_toolbar(). Additional items may be added, or existing items altered.
  *
  * @param $items
  *   Associative array of toolbar menu definitions returned from hook_toolbar().