Add human filter
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2021-12-17 00:28:55 +01:00
parent afed5c752f
commit 1312a2d6f5
1 changed files with 12 additions and 0 deletions

View File

@ -96,6 +96,18 @@ class Plugin extends PluginBase
]; ];
} }
public function registerMarkupTags(): array
{
return [
'filters' => [
'human' => function($date) {
return $date->diffForHumans();
}
]
];
}
public function registerSettings() { public function registerSettings() {
return [ return [
'settings' => [ 'settings' => [