Passed
Push — master ( af9933...6d2375 )
by Torben
04:41 queued 01:21
created

renderPageModulePreviewContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
namespace DERHANSEN\SfEventMgt\Preview;
13
14
use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem;
15
use TYPO3\CMS\Core\Utility\GeneralUtility;
16
17
class PipaymentPreviewRenderer extends AbstractPluginPreviewRenderer
18
{
19
    /**
20
     * Renders the content of the plugin preview.
21
     *
22
     * @param GridColumnItem $item
23
     * @return string
24
     */
25
    public function renderPageModulePreviewContent(GridColumnItem $item): string
26
    {
27
        $record = $item->getRecord();
28
        $pluginName = $this->getPluginName($record);
29
30
        return $this->renderAsTable([], $pluginName);
31
    }
32
33
}
34