Skip to content

Commit f209418

Browse files
christophlehmannmschwemer
authored andcommitted
[TASK] Forward rendering context in VariablesViewHelper
To be able to use ViewHelpers that requires the ServerRequest, for example the CObjectViewHelper.
1 parent 0c0e9fb commit f209418

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Classes/ViewHelpers/Misc/VariablesViewHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function render(): string
5959
$function = $this->arguments['function'];
6060
$mailRepository = GeneralUtility::makeInstance(MailRepository::class);
6161
$parseObject = GeneralUtility::makeInstance(StandaloneView::class);
62+
$parseObject->setRenderingContext($this->renderingContext);
6263
$parseObject->setTemplateSource($this->removePowermailAllParagraphTagWrap($this->renderChildren()));
6364
$parseObject->assignMultiple(
6465
ArrayUtility::htmlspecialcharsOnArray($mailRepository->getVariablesWithMarkersFromMail($mail))

0 commit comments

Comments
 (0)