class HumanDateFilter

Methods

string
__invoke(array $context, TimeDate $time, string $format = '', bool $tooltip = true)

No description

static 
get()

No description

Details

at line line 17
string __invoke(array $context, TimeDate $time, string $format = '', bool $tooltip = true)

Parameters

array $context Twig's context
TimeDate $time The TimeDate object we'll be representing as text
string $format The format that will be shown. If a format isn't set, it'll return the difference in human readable time
bool $tooltip Whether to show a tooltip with the absolute timestamp when a user hovers over it, defaults to false if $format is provided and true if it's not.

Return Value

string

at line line 39
static get()