Skip to content

Commit 6eda80e

Browse files
feat: add target blank option for menu button links
1 parent 7b52b9e commit 6eda80e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Service/MenuGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ public function getDropdown(int $pid, string $returnUrl, int $languageUid, array
9797
'returnUrl' => $returnUrlAnchor,
9898
]
9999
)->__toString(),
100-
icon: $this->iconFactory->getIcon('actions-open', Icon::SIZE_SMALL)
100+
icon: $this->iconFactory->getIcon('actions-open', Icon::SIZE_SMALL),
101+
targetBlank: array_key_exists('linkTargetBlank', $this->configuration) && $this->configuration['linkTargetBlank']
101102
);
102103
} else {
103104
$menuButton = new Button(

0 commit comments

Comments
 (0)