Latte\Loaders\FileLoader::getReferredName PHP Method

getReferredName() public method

Returns referred template name.
public getReferredName ( $file, $referringFile ) : string
return string
    public function getReferredName($file, $referringFile)
    {
        if ($this->baseDir || !preg_match('#/|\\\\|[a-z][a-z0-9+.-]*:#iA', $file)) {
            $file = $this->normalizePath($referringFile . '/../' . $file);
        }
        return $file;
    }