/** * Retrieve default attribute source model * * @return string */ protected function _getDefaultSourceModel() { if ($this->getAttributeCode() == 'store_id') { return 'Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Store'; } return parent::_getDefaultSourceModel(); }