How can I get variable value in custom filter?
// volt template
{{ text|own }}
// filter definition
$volt->getCompiler()->addFilter('own', function($resolvedArgs, $exprArgs) {
...
}
The variable $resolvedArgs does not contain evaluated value of {{ text }} but only string '$text'. How can I get real value to filter it after?
Thank you.