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