23 $entities =
$source->getElementsByTagName(
'entity');
26 foreach ($entities as
$entity) {
31 foreach (
$entity->getElementsByTagName(
'attribute') as $entityAttribute) {
32 $attributeFields = [];
33 foreach ($entityAttribute->getElementsByTagName(
'field') as $fieldData) {
34 $locked = $fieldData->attributes->getNamedItem(
'locked')->nodeValue ==
"true" ? true :
false;
35 $attributeFields[$fieldData->attributes->getNamedItem(
38 'code' => $fieldData->attributes->getNamedItem(
'code')->nodeValue,
42 $attributes[$entityAttribute->attributes->getNamedItem(
'code')->nodeValue] = $attributeFields;
45 $output[
$entity->attributes->getNamedItem(
'type')->nodeValue] = $entityConfig;