‪TYPO3CMS  9.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 26 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 45 of file DateTimeViewHelper.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\datetime().

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 34 of file DateTimeViewHelper.php.