AssetCompress\AssetScanner::_expandPrefix PHP Method

_expandPrefix() protected method

Resolve a plugin or theme path into the file path without the search paths.
protected _expandPrefix ( string $path ) : string
$path string Path to resolve
return string resolved path
    protected function _expandPrefix($path)
    {
        if (preg_match(self::PLUGIN_PATTERN, $path)) {
            return $this->_expandPlugin($path);
        }
        if ($this->theme && preg_match(self::THEME_PATTERN, $path)) {
            return $this->_expandTheme($path);
        }
        return $path;
    }