App\Console\Commands\SkinMake::getPlugin PHP Method

getPlugin() protected method

getTargetPlugin
protected getPlugin ( ) : PluginEntity
return Xpressengine\Plugin\PluginEntity
    protected function getPlugin()
    {
        $path = $this->argument('path');
        list($plugin, $path) = explode('/', $path, 2);
        $plugin = app('xe.plugin')->getPlugin($plugin);
        if ($plugin === null) {
            throw new \Exception("Unable to find a plugin to locate the skin file. plugin[{$plugin}] is not found.");
        }
        return $plugin;
    }