From e04053c73d3c9bd66cb4baa37ec135ed28f16399 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Thu, 15 Feb 2024 12:53:13 +0100 Subject: [PATCH] TASK: Remove deprecated `editPreviewMode` variable The TypoScript context variable `editPreviewMode` was deprecated in favour of `${documentNode.context.currentRenderingMode.name}` With neos 9 that again was removed in favour of the fusion global `renderingMode`. https://github.com/neos/neos-development-collection/pull/4505 --- Neos.Neos/Classes/View/FusionExceptionView.php | 3 +-- Neos.Neos/Classes/View/FusionView.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Neos.Neos/Classes/View/FusionExceptionView.php b/Neos.Neos/Classes/View/FusionExceptionView.php index 23b006cca8a..a3bfc66d2c7 100644 --- a/Neos.Neos/Classes/View/FusionExceptionView.php +++ b/Neos.Neos/Classes/View/FusionExceptionView.php @@ -163,8 +163,7 @@ public function render() [ 'node' => $currentSiteNode, 'documentNode' => $currentSiteNode, - 'site' => $currentSiteNode, - 'editPreviewMode' => null + 'site' => $currentSiteNode ] )); diff --git a/Neos.Neos/Classes/View/FusionView.php b/Neos.Neos/Classes/View/FusionView.php index 7cf490e96f5..6ff365b5127 100644 --- a/Neos.Neos/Classes/View/FusionView.php +++ b/Neos.Neos/Classes/View/FusionView.php @@ -77,8 +77,7 @@ public function render(): string|ResponseInterface $fusionRuntime->pushContextArray([ 'node' => $currentNode, 'documentNode' => $this->getClosestDocumentNode($currentNode) ?: $currentNode, - 'site' => $currentSiteNode, - 'editPreviewMode' => $this->variables['editPreviewMode'] ?? null + 'site' => $currentSiteNode ]); try { $output = $fusionRuntime->render($this->fusionPath);