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

PipaymentPreviewRenderer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A renderPageModulePreviewContent() 0 6 1
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