src/Controller/UpdateController.php
private function createSettingForm(Section $section, Collection $settings)
    {
        $data = $this->createSettingData($this->getSectionedSettings($section->getName(), $settings));

        return $this->get('form.factory')->createNamed('', SectionUpdateType::class, $data, [
            'section' => $section,
        ]);
    }
private function createSettingForm(Section $section, Collection $settings)
    {
        $data = $this->createSettingData($this->getSectionedSettings($section->getName(), $settings));

        return $this->get('form.factory')->createNamed('', SectionUpdateType::class, $data, [
            'section' => $section,
        ]);
    }
@param Section $section
@param Collection $settings

@return FormInterface