Feature/twig hooks filters (#258)

* feat: Hooks filters

* Cleanup
This commit is contained in:
Slawomir Boczek
2025-03-09 21:39:37 +01:00
committed by slawkens
parent 73a5829974
commit 99997eb57d
6 changed files with 75 additions and 19 deletions

View File

@@ -37,6 +37,11 @@ class Hook
return !isset($ret) || $ret == 1 || $ret;
}
public function executeFilter(...$args) {
return include BASE . $this->_file;
}
public function name() {return $this->_name;}
public function type() {return $this->_type;}
public function file() {return $this->_file;}
}