‪TYPO3CMS  11.5
TYPO3\CMS\IndexedSearch\ViewHelpers\Format\DateTimeViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\IndexedSearch\ViewHelpers\Format\DateTimeViewHelper:

Static Public Member Functions

static string renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

bool $escapeChildren = false
 

Detailed Description

DateTime viewhelper

Definition at line 27 of file DateTimeViewHelper.php.

Member Function Documentation

◆ renderStatic()

static string TYPO3\CMS\IndexedSearch\ViewHelpers\Format\DateTimeViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Render the given timestamp as date & time

Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string

Definition at line 46 of file DateTimeViewHelper.php.

Member Data Documentation

◆ $escapeChildren

bool TYPO3\CMS\IndexedSearch\ViewHelpers\Format\DateTimeViewHelper::$escapeChildren = false
protected

The rendered children are fed into data() function, which expects an integer. It reduces overhead and is safe to disable children escaping here.

Definition at line 35 of file DateTimeViewHelper.php.