src/Controller/UpdateController.php
private function createSettingData(array $settings)
    {
        if (empty($settings)) {
            return null;
        }

        $data = [];

        foreach ($settings as $setting) {
            $data[$setting->getKey()] = $this->transformSettingValue($setting);
        }

        return $data;
    }
private function createSettingData(array $settings)
    {
        if (empty($settings)) {
            return null;
        }

        $data = [];

        foreach ($settings as $setting) {
            $data[$setting->getKey()] = $this->transformSettingValue($setting);
        }

        return $data;
    }
@param SettingInterface[] $settings

@return array|null