Skip to content

Commit

Permalink
Initial relase for Winter 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Helmut Kaufmann committed Aug 28, 2022
1 parent 9d065a8 commit 42e2450
Show file tree
Hide file tree
Showing 6 changed files with 258 additions and 81 deletions.
14 changes: 14 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
use Twig\Extra\String\StringExtension;
use Twig\Extension\StringLoaderExtension;
use Twig\Extra\Date\DateExtension;
use System\Models\EventLog as EventLog;

/**
* Twig Extensions Plugin.
Expand Down Expand Up @@ -163,6 +164,19 @@ public function registerMarkupTags() {
/**
* Return all filters and functions.
**/

$tester="strftime";
if (!array_key_exists($tester, $functions))
EventLog::add("twigext function: $tester daoes NOT exist");
else {
EventLog::add("twigext function: $tester exists");
}
if (!array_key_exists($tester, $filters))
EventLog::add("twigext filter: $tester daoes NOT exist");
else {
EventLog::add("twigext filter: $tester exists");
}

return ['filters' => $filters, 'functions' => $functions, ];
}

Expand Down
Loading

0 comments on commit 42e2450

Please sign in to comment.