if (isset($type['viewMetaDescriptionFieldName'
])) { $class->
setViewMetaDescriptionFieldName($type['viewMetaDescriptionFieldName'
]);
} 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);