50 return $this->groupRepository->save(
$group);
67 $group = $this->groupFactory->create();
71 __(
'The group with the "%1" ID doesn\'t exist. Verify the ID and try again.',
$groupId)
94 if (
$group->hasSystemAttributes()) {
96 __(
"The attribute group can't be deleted because it contains system attributes.")
99 return $this->groupRepository->delete(
$group);
__construct(\Magento\Eav\Api\AttributeGroupRepositoryInterface $groupRepository, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group $groupResource, \Magento\Catalog\Model\Product\Attribute\GroupFactory $groupFactory)
getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria)
save(\Magento\Eav\Api\Data\AttributeGroupInterface $group)