From d0952e71c116131dff758626c502a8f1d128cc97 Mon Sep 17 00:00:00 2001 From: Derek G Date: Tue, 24 May 2022 15:08:45 -0400 Subject: [PATCH] Add linkTemplate option to item --- src/Menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Menu.php b/src/Menu.php index fd1819b..5fc435d 100644 --- a/src/Menu.php +++ b/src/Menu.php @@ -160,7 +160,7 @@ protected function renderItem($item) $treeFlag = ''; } - $template = ArrayHelper::getValue($item, 'template', $this->linkTemplate); + $template = ArrayHelper::getValue($item, 'template', (isset($item['linkTemplate']))? $item['linkTemplate'] : $this->linkTemplate); return strtr($template, [ '{label}' => strtr($this->labelTemplate, [ '{label}' => $item['label'],