Skip to content
This repository was archived by the owner on May 15, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Classes/Hooks/PluginInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down Expand Up @@ -88,7 +88,10 @@ public function build(array $contentElement, PageLayoutView $pageLayoutView)
Default source: $defaultSource<br/>
File storage: $defaultStorage
HTML;
return $pageLayoutView->linkEditContent($pluginDescription, $row);
if ($pageLayoutView instanceof PageLayoutView) {
return $pageLayoutView->linkEditContent($pluginDescription, $row);
}
return $pluginDescription;
}

/**
Expand Down