Issue #3305095 by pgrandeg: Twig\Error\RuntimeError: The callable passed to the "filter" filter must be a Closure in sandbox mode
Closes #3305095