src/Lib/Twig/Loader.php
private function resolveFileName($name): string
    {
        $filename = $this->getFilename($name);
        if ($filename === false) {
            throw new LoaderError(sprintf('Template "%s" is not defined.', $name));
        }

        return $filename;
    }
private function resolveFileName($name): string
    {
        $filename = $this->getFilename($name);
        if ($filename === false) {
            throw new LoaderError(sprintf('Template "%s" is not defined.', $name));
        }

        return $filename;
    }
private function resolveFileName ( $ name ) : string { $ filename = $ this -> getFilename ( $ name ) ; if ( $ filename === false ) { throw new LoaderError ( sprintf ( 'Template "%s" is not defined.' , $ name ) ) ; } return $ filename ; }
Resolve template name to filename.

@param string $name Template.

@throws \Twig\Error\LoaderError Thrown when template file isn't found.
@return string
Resolve template name to filename .