HeaderDataViewHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 4 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\ViewHelpers;
13
14
use TYPO3\CMS\Core\Page\PageRenderer;
15
use TYPO3\CMS\Core\Utility\GeneralUtility;
16
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
17
18
/**
19
 * ViewHelper to render data in <head> section of website
20
 *
21
 * @author Georg Ringer <[email protected]>
22
 */
23
class HeaderDataViewHelper extends AbstractViewHelper
24
{
25
    /**
26
     * Renders HeaderData
27
     */
28
    public function render(): void
29
    {
30
        $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
31
        $pageRenderer->addHeaderData($this->renderChildren());
32
    }
33
}
34