- public function modifyMeta(array $meta)
- {
- if ($name = $this->getGeneralPanelName($meta)) {
- $meta[$name]['children']['attribute_set_id']['arguments']['data']['config'] = [
- 'component' => 'Magento_Ui/js/form/element/ui-select',
- 'disableLabel' => true,
- 'filterOptions' => true,
- 'elementTmpl' => 'ui/grid/filters/elements/ui-select',
- 'formElement' => 'select',
- 'componentType' => Field::NAME,
- 'options' => $this->getOptions(),
- 'visible' => 1,
- 'required' => 1,
- 'label' => __('Attribute Set'),
- 'source' => $name,
- 'dataScope' => 'attribute_set_id',
- 'filterUrl' => $this->urlBuilder->getUrl('catalog/product/suggestAttributeSets', ['isAjax' => 'true']),
- 'sortOrder' => $this->getNextAttributeSortOrder(
- $meta,
- [AttributeConstantsInterface::CODE_STATUS],
- self::ATTRIBUTE_SET_FIELD_ORDER
- ),
- 'multiple' => false,
- ];
- }
-
- return $meta;
- }