Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
empty_attribute_group.php
Go to the documentation of this file.
1 <?php
8 $attributeGroup = $objectManager->create(\Magento\Eav\Model\Entity\Attribute\Group::class);
9 $entityTypeId = $objectManager->create(\Magento\Eav\Model\Entity\Type::class)->loadByCode('catalog_product')->getId();
10 $attributeGroup->setData([
11  'attribute_group_name' => 'empty_attribute_group',
12  'attribute_set_id' => 1,
13 ]);
14 $attributeGroup->save();