‪TYPO3CMS  10.4
AbstractEscapingBaseViewHelper.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
18 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
19 
23 abstract class ‪AbstractEscapingBaseViewHelper extends AbstractViewHelper
24 {
25  public function ‪initializeArguments()
26  {
27  $this->registerArgument('content', 'string', 'Content provided as argument', false, null);
28  }
29 
33  public function ‪render()
34  {
35  if (!isset($this->arguments['content'])) {
36  $content = $this->renderChildren();
37  } else {
38  $content = $this->arguments['content'];
39  }
40  return $content;
41  }
42 }
‪TYPO3Fluid\FluidTest\ViewHelpers
Definition: AbstractEscapingBaseViewHelper.php:16
‪TYPO3Fluid\FluidTest\ViewHelpers\AbstractEscapingBaseViewHelper
Definition: AbstractEscapingBaseViewHelper.php:24
‪TYPO3Fluid\FluidTest\ViewHelpers\AbstractEscapingBaseViewHelper\render
‪string render()
Definition: AbstractEscapingBaseViewHelper.php:33
‪TYPO3Fluid\FluidTest\ViewHelpers\AbstractEscapingBaseViewHelper\initializeArguments
‪initializeArguments()
Definition: AbstractEscapingBaseViewHelper.php:25