28 private $translitFilter;
43 \
Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory,
59 $this->translitFilter = $translitFilter;
102 if (!$this->getAttributeGroupCode()) {
105 $attributeGroupCode = trim(
109 $this->translitFilter->filter(strtolower($groupName))
113 if (empty($attributeGroupCode)) {
115 $attributeGroupCode = md5($groupName);
117 $this->setAttributeGroupCode($attributeGroupCode);
120 return parent::beforeSave();
129 return $this->
getData(self::GROUP_ID);
137 return $this->
getData(self::GROUP_NAME);
145 return $this->
getData(self::ATTRIBUTE_SET_ID);
161 return $this->
setData(self::GROUP_NAME, $attributeGroupName);
_getExtensionAttributes()
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, \Magento\Framework\Filter\Translit $translitFilter, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
setExtensionAttributes(\Magento\Eav\Api\Data\AttributeGroupExtensionInterface $extensionAttributes)
getData($key='', $index=null)
setAttributeSetId($attributeSetId)
setData($key, $value=null)
setAttributeGroupId($attributeGroupId)
setAttributeGroupName($attributeGroupName)