parseComboboStoreList example

$item['type'] = $element->getAttribute('type');
        $item['translatable'] = XmlUtils::phpize($element->getAttribute('translatable') ?: false);
        $item['required'] = XmlUtils::phpize($element->getAttribute('required') ?: false);
        $item['custom'] = self::parseCustom($element);
        $item['options'] = self::parseCustom($element, 'options');

        $store = $element->getElementsByTagName('store');

        if ($store->length) {
            /** @var DOMElement $storeElement */
            $storeElement = $store->item(0);
            $item['store'] = self::parseComboboStoreList($storeElement);
        }

        return $item;
    }

    private static function parseFieldset(DOMElement $element): array
    {
        $fieldSet = [];

        if ($label = $element->getAttribute('label')) {
            $fieldSet['label'] = $label;
        }
Home | Imprint | This part of the site doesn't use cookies.