Completed
Push — master ( 617684...c9d31b )
by Torben
161:05 queued 159:19
created

HeaderDataViewHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 5 1
1
<?php
2
3
namespace DERHANSEN\SfEventMgt\ViewHelpers;
4
5
/**
6
 * This file is part of the TYPO3 CMS project.
7
 *
8
 * It is free software; you can redistribute it and/or modify it under
9
 * the terms of the GNU General Public License, either version 2
10
 * of the License, or any later version.
11
 *
12
 * For the full copyright and license information, please read the
13
 * LICENSE.txt file that was distributed with this source code.
14
 *
15
 * The TYPO3 project - inspiring people to share!
16
 */
17
18
use TYPO3\CMS\Core\Page\PageRenderer;
19
use TYPO3\CMS\Core\Utility\GeneralUtility;
20
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
21
22
/**
23
 * ViewHelper to render data in <head> section of website
24
 *
25
 * @author Georg Ringer <[email protected]>
26
 */
27
class HeaderDataViewHelper extends AbstractViewHelper
28
{
29
30
    /**
31
     * Renders HeaderData
32
     *
33
     * @return void
34
     */
35
    public function render()
36
    {
37
        $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
38
        $pageRenderer->addHeaderData($this->renderChildren());
39
    }
40
}
41