App\Console\Commands\ThemeMake::getThemeFile PHP Method

getThemeFile() protected method

getThemeFile
protected getThemeFile ( PluginEntity $plugin, $path, $themeClass ) : array | string
$plugin Xpressengine\Plugin\PluginEntity
$path
$themeClass
return array | string
    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;
    }