Model
Share
Magento\Customer\Model\Config\Share
What it does
This class manages customer account sharing configuration between websites in a multi-store Magento setup.
Developers use it to determine whether customer accounts are shared globally across all websites or scoped per website, validate email uniqueness when changing sharing settings, and retrieve which websites should have access to a customer account based on the current configuration.
Public Methods
- isGlobalScope()
- isWebsiteScope()
- toOptionArray()
- beforeSave()
- getSharedWebsiteIds()