parseFieldset example

throw new InvalidArgumentException('Content-Type with enabled showInFrontend requires a viewTitleFieldName, viewDescriptionFieldName, viewImageFieldName, viewMetaTitleFieldName, viewMetaDescriptionFieldName');
        }

        $item['menuParent'] = 'Content';

        if ($menuParent = self::getElementChildValueByName($element, 'menuParent')) {
            $item['menuParent'] = $menuParent;
        }

        if (($fieldSets = $element->getElementsByTagName('fieldSet')) !== null) {
            foreach ($fieldSets as $fieldSet) {
                $item['fieldSets'][] = self::parseFieldset($fieldSet);
            }
        }

        return $item;
    }

    private static function parseField(DOMElement $element): array
    {
        $item = [];

        $fields = ['label', 'showListing', 'searchAble', 'helpText', 'description'];
        
Home | Imprint | This part of the site doesn't use cookies.