- Issue created by @geinosky
- Merge request !8Check to see if the menu tree contains any items in the array. → (Open) created by geinosky
The page breaks when an anonymous user views a page that is added to a menu and the parent menu item requires a user to be authenticated to see it.
The logs return:
TypeError: array_walk(): Argument #1 ($array) must be of type array, null given in array_walk() (line 162 of /code/web/modules/composer/contextual_menu_block/src/Plugin/Block/ContextualMenuBlock.php).
Add a public page to a menu where the parent menu item requires authentication to see it.
Check to see if the menu item has any '#items' in the menu before building the menu block.
Active
1.3
Code