Completed
Push — master ( 72cc95...6cef6f )
by Tim
13s
created

WrapCurlyBracesViewHelper::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * WrapCurlyBracesViewHelper
4
 *
5
 * @author  Tim Lochmüller
6
 */
7
8
namespace HVP\Html5videoplayer\ViewHelpers\Format;
9
10
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
11
12
/**
13
 * WrapCurlyBracesViewHelper
14
 */
15
class WrapCurlyBracesViewHelper extends AbstractViewHelper
16
{
17
18
    /**
19
     * Specifies whether the escaping interceptors should be disabled or enabled for the result of renderChildren() calls within this ViewHelper
20
     * @see isChildrenEscapingEnabled()
21
     *
22
     * Note: If this is NULL the value of $this->escapingInterceptorEnabled is considered for backwards compatibility
23
     *
24
     * @var boolean
25
     * @api
26
     */
27
    protected $escapeChildren = false;
28
29
    /**
30
     * Specifies whether the escaping interceptors should be disabled or enabled for the render-result of this ViewHelper
31
     * @see isOutputEscapingEnabled()
32
     *
33
     * @var boolean
34
     * @api
35
     */
36
    protected $escapeOutput = false;
37
38
    /**
39
     * @return string
40
     */
41
    public function render()
42
    {
43
        return '{' . $this->renderChildren() . '}';
44
    }
45
46
}