eavConfig = $eavConfig; parent::__construct($context, $registry, $config, $cacheTypeList, $resource, $resourceCollection, $data); } /** * Save EAV default value after save * * @return $this */ public function afterSave() { $result = parent::afterSave(); $attributeObject = $this->eavConfig->getAttribute('customer', 'disable_auto_group_change'); $attributeObject->setData('default_value', $this->getValue()); $attributeObject->save(); return $result; } }