AssetCompress\AssetScanner::_expandTheme PHP Method

_expandTheme() protected method

Resolve a themed file to its full path. The file will be found on the current theme's path.
protected _expandTheme ( string $file ) : string
$file string The theme file to find.
return string The expanded path
    protected function _expandTheme($file)
    {
        $file = preg_replace(self::THEME_PATTERN, '', $file);
        return Plugin::path($this->theme) . 'webroot' . DS . $file;
    }