DateTimeViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

FinalYes
Internal

Table of Contents

Properties

$escapeChildren  : bool
The rendered children are fed into data() function, which expects an integer.

Methods

renderStatic()  : string
Render the given timestamp as date & time.

Properties

$escapeChildren

The rendered children are fed into data() function, which expects an integer.

protected bool $escapeChildren = false

It reduces overhead and is safe to disable children escaping here.

Methods

renderStatic()

Render the given timestamp as date & time.

public static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Return values
string

        
On this page

Search results