Add markup tag
This commit is contained in:
parent
ea5a64e732
commit
17e1456ee7
12
Plugin.php
12
Plugin.php
|
@ -3,6 +3,7 @@
|
|||
namespace Zoomyboy\Event;
|
||||
|
||||
use Backend;
|
||||
use Carbon\Carbon;
|
||||
use System\Classes\PluginBase;
|
||||
|
||||
/**
|
||||
|
@ -106,6 +107,17 @@ class Plugin extends PluginBase
|
|||
];
|
||||
}
|
||||
|
||||
public function registerMarkupTags(): array
|
||||
{
|
||||
return [
|
||||
'filters' => [
|
||||
'date' => function ($date) {
|
||||
return Carbon::parse($date)->format('d.m.Y');
|
||||
},
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
public function registerMailTemplates()
|
||||
{
|
||||
return [
|
||||
|
|
Loading…
Reference in New Issue