Fieldset example

$fields = array_merge($fields$fieldSet->getFields());
        }

        $class->setFields($fields);
        $class->setFieldSets($fieldSets);

        return $class;
    }

    public function createFieldset(array $fieldset): Fieldset
    {
        $class = new Fieldset();

        if (isset($fieldset['label'])) {
            $class->setLabel($fieldset['label']);
        }

        if (isset($fieldset['options'])) {
            $class->setOptions($fieldset['options']);
        }

        $fields = [];
        foreach ($fieldset['fields'] as $field) {
            
Home | Imprint | This part of the site doesn't use cookies.