‪TYPO3CMS  10.4
DateTimeViewHelper.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 
19 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
20 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
21 use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
22 
27 class ‪DateTimeViewHelper extends AbstractViewHelper
28 {
29  use CompileWithRenderStatic;
30 
37  protected ‪$escapeChildren = false;
38 
48  public static function ‪renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
49  {
50  return ‪BackendUtility::datetime($renderChildrenClosure());
51  }
52 }
‪TYPO3\CMS\Backend\Utility\BackendUtility\datetime
‪static string datetime($value)
Definition: BackendUtility.php:989
‪TYPO3\CMS\IndexedSearch\ViewHelpers\Format\DateTimeViewHelper
Definition: DateTimeViewHelper.php:28
‪TYPO3\CMS\IndexedSearch\ViewHelpers\Format
Definition: DateTimeViewHelper.php:16
‪TYPO3\CMS\Backend\Utility\BackendUtility
Definition: BackendUtility.php:75
‪TYPO3\CMS\IndexedSearch\ViewHelpers\Format\DateTimeViewHelper\$escapeChildren
‪bool $escapeChildren
Definition: DateTimeViewHelper.php:35
‪TYPO3\CMS\IndexedSearch\ViewHelpers\Format\DateTimeViewHelper\renderStatic
‪static string renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
Definition: DateTimeViewHelper.php:46