$config[$field->getAttributeCode()] = [
'label' => $field->getStoreLabel($storeId),
'config' => [
'customScope' => 'custom_attributes',
'template' => 'ui/form/field',
'elementTmpl' => $this->helper->getFieldTemplate($field),
'multiple' => $field->getFrontendInput() == 'multiselect',
'additionalClasses' => $this->getAdditionalClasses($field)
],
'validation' => $this->getFieldValidation($field),
'options' => $this->getFieldOptions($field),
'component' => $this->helper->getFieldUiComponent($field),
'provider' => 'swissup' . ucfirst(static::ENTITY_TYPE) . 'Provider',
'caption' => __('Please select'),
'dataScope' => $this->getFieldDataScope($field),
'sortOrder' => $field->getSortOrder(),
'visible' => $field->getIsVisible() ? true : false,
'value' => $this->getFieldValue($field),
'imports' => [
'visible' => '${ $.parentName }.buy_as_company:value'
]
];