/** * Prepare Catalog Attribute Set data * * @param CatalogAttributeSet $attributeSet * @return void */ protected function prepareData(CatalogAttributeSet $attributeSet) { if (!$attributeSet->hasData('attribute_set_id')) { $attributeSet->persist(); } $this->data = $attributeSet->getAttributeSetName(); $this->attributeSet = $attributeSet; }