parseCustom example

$value = (bool) XmlUtils::phpize($value);
                }

                $item[$field] = $value;
            }
        }

        $item['name'] = $element->getAttribute('name');
        $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;
    }
Home | Imprint | This part of the site doesn't use cookies.