Rarst\Meadow\Extension::getFunctions PHP Метод

getFunctions() публичный Метод

public getFunctions ( )
    public function getFunctions()
    {
        $options = array('needs_environment' => true, 'needs_context' => true, 'is_safe' => array('all'));
        $functions = array();
        foreach (array('get_header', 'get_footer', 'get_sidebar', 'get_template_part', 'get_search_form', 'comments_template') as $function) {
            $functions[] = new \Twig_SimpleFunction($function, array($this, $function), $options);
        }
        return $functions;
    }