Timber\Loader::get_loader PHP Метод

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

public get_loader ( ) : Twig_Loader_Filesystem
Результат Twig_Loader_Filesystem
    public function get_loader()
    {
        $open_basedir = ini_get('open_basedir');
        $paths = array_merge($this->locations, array($open_basedir ? ABSPATH : '/'));
        $paths = apply_filters('timber/loader/paths', $paths);
        $rootPath = '/';
        if ($open_basedir) {
            $rootPath = null;
        }
        $fs = new \Twig_Loader_Filesystem($paths, $rootPath);
        $fs = apply_filters('timber/loader/loader', $fs);
        return $fs;
    }