private function getRealFilename(string $file): string
    {
        if (strpos($file, 'vfs://') !== false) {
            return $file;
        }

        return $this->loader->getSourceContext($file)->getPath();
    }
private function getRealFilename(string $file): string
    {
        if (strpos($file, 'vfs://') !== false) {
            return $file;
        }

        return $this->loader->getSourceContext($file)->getPath();
    }
private function getRealFilename ( string $ file ) : string { if ( strpos ( $ file , 'vfs://' ) !== false ) { return $ file ; } return $ this -> loader -> getSourceContext ( $ file ) -> getPath ( ) ; }
Returns full path and filename.

@param string $file file

@throws LoaderError

@return string
Returns full path and filename .