Ouzo\View\OuzoTwigExtension::toSimpleFunctions PHP Method

toSimpleFunctions() private method

private toSimpleFunctions ( $functions, array $options = [] )
$options array
    private function toSimpleFunctions($functions, array $options = array())
    {
        $result = array();
        foreach ($functions as $function) {
            $result[] = new Twig_SimpleFunction($function, $function, $options);
        }
        return $result;
    }