Frontend\Core\Engine\TwigTemplate::getPath PHP Method

getPath() public method

Convert a filename extension
public getPath ( string $template ) : string
$template string
return string
    public function getPath($template)
    {
        if (strpos($template, FRONTEND_MODULES_PATH) !== false) {
            return str_replace(FRONTEND_MODULES_PATH . '/', '', $template);
        }
        // else it's in the theme folder
        return str_replace($this->themePath . '/', '', $template);
    }