protected function getThemeFile(PluginEntity $plugin, $path, $themeClass) { $path = $path . "/{$themeClass}.php"; if (file_exists($plugin->getPath($path))) { throw new \Exception("file[{$path}] already exists."); } return $path; }