protected function _expandTheme($file) { $file = preg_replace(self::THEME_PATTERN, '', $file); return Plugin::path($this->theme) . 'webroot' . DS . $file; }