App\Http\Controllers\ThemeController::editSetting PHP Method

editSetting() public method

public editSetting ( Request $request, ThemeHandler $themeHandler )
$request Xpressengine\Http\Request
$themeHandler Xpressengine\Theme\ThemeHandler
    public function editSetting(Request $request, ThemeHandler $themeHandler)
    {
        $this->validate($request, ['theme' => 'required']);
        $themeId = $request->get('theme');
        $theme = $themeHandler->getTheme($themeId);
        if (!$theme->hasSetting()) {
            throw new NotSupportSettingException();
        }
        $configs = $themeHandler->getThemeConfigList($theme->getId());
        $config = $theme->setting();
        $configList = [];
        foreach ($configs as $id => $item) {
            $configList[$id] = $item->get('_configTitle', '기본');
        }
        return \XePresenter::make('theme.config', compact('theme', 'config', 'configList'));
    }