createFieldset example

if (isset($type['seoUrlTemplate'])) {
            $class->setSeoUrlTemplate($type['seoUrlTemplate']);
        }

        if (isset($type['seoRobots'])) {
            $class->setSeoRobots($type['seoRobots']);
        }

        $fieldSets = [];
        $fields = [];
        foreach ($type['fieldSets'] as $fieldSet) {
            $fieldSet = $this->createFieldset($fieldSet);
            $fieldSets[] = $fieldSet;
            $fields = array_merge($fields$fieldSet->getFields());
        }

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

        return $class;
    }

    public function createFieldset(array $fieldset): Fieldset
    {
Home | Imprint | This part of the site doesn't use cookies.