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; } /**