From 31aff58225e267a789053c0614d5abe2dbdce2e9 Mon Sep 17 00:00:00 2001 From: Joao Costa Date: Wed, 3 Jul 2024 22:34:09 +0200 Subject: [PATCH] Issue-405: Do not preprocess navigation_menu. --- src/MenuPreprocess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MenuPreprocess.php b/src/MenuPreprocess.php index aca0486c1..bb1fdabdb 100644 --- a/src/MenuPreprocess.php +++ b/src/MenuPreprocess.php @@ -23,7 +23,7 @@ class MenuPreprocess { * The preprocess hook. */ public function preprocessMenu(array &$variables, string $hook): void { - if ($hook === 'menu__toolbar') { + if (in_array($hook, ['menu__toolbar', 'navigation_menu'])) { return; }