From df09297a2f0e7d1b424919df66e369b1ff6d9d36 Mon Sep 17 00:00:00 2001 From: Alexander Opitz Date: Mon, 15 Apr 2019 14:47:30 +0200 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20Add=20compatibility=20to=20TemplaVo?= =?UTF-8?q?il=C3=A0!=20Plus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/Hooks/PluginInformation.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Classes/Hooks/PluginInformation.php b/Classes/Hooks/PluginInformation.php index 3104c69..2d93894 100644 --- a/Classes/Hooks/PluginInformation.php +++ b/Classes/Hooks/PluginInformation.php @@ -55,11 +55,11 @@ public function __construct() /** * @param array $contentElement - * @param PageLayoutView $pageLayoutView + * @param PageLayoutView $pageLayoutView In core PageLayoutView in TemplaVoilà! Plus BackendLayoutController * * @return string */ - public function build(array $contentElement, PageLayoutView $pageLayoutView) + public function build(array $contentElement, $pageLayoutView) { $row = $contentElement['row']; $label = BackendUtility::getLabelFromItemListMerged($row['pid'], 'tt_content', 'list_type', $row['list_type']); @@ -88,7 +88,10 @@ public function build(array $contentElement, PageLayoutView $pageLayoutView) Default source: $defaultSource
File storage: $defaultStorage HTML; - return $pageLayoutView->linkEditContent($pluginDescription, $row); + if ($pageLayoutView instanceof PageLayoutView) { + return $pageLayoutView->linkEditContent($pluginDescription, $row); + } + return $pluginDescription; } /**