Commit 7246ec4 1 parent 40e444c commit 7246ec4 Copy full SHA for 7246ec4
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,15 @@ public function addLinkIcon(AfterLinkIsGeneratedEvent $event): void {
16
16
return ;
17
17
}
18
18
19
- $ classes = GeneralUtility:: trimExplode ( ' ' , $ tagAttributes [ ' class ' ], true );
20
-
21
- $ svgMapping = $ GLOBALS [ ' TSFE ' ]-> tmpl -> setup [ ' plugin. ' ]['tx_vierwdbase. ' ]['linkIcons. ' ];
19
+ $ request = $ event -> getContentObjectRenderer ()-> getRequest ( );
20
+ $ typoScript = $ request -> getAttribute ( ' frontend.typoscript ' )-> getSetupArray ();
21
+ $ svgMapping = $ typoScript [ ' plugin. ' ]['tx_vierwdbase. ' ]['linkIcons. ' ] ?? null ;
22
22
if (!$ svgMapping ) {
23
23
return ;
24
24
}
25
25
26
+ $ classes = GeneralUtility::trimExplode (' ' , $ tagAttributes ['class ' ], true );
27
+
26
28
if (in_array ('external-link-new-window ' , $ classes )) {
27
29
$ linkResult = $ linkResult ->withAttribute ('target ' , '_blank ' );
28
30
$ rel = GeneralUtility::trimExplode (' ' , $ tagAttributes ['rel ' ], true );
You can’t perform that action at this time.
0 commit comments