Log in
Repository

GroupExcludedWebsiteRepositoryInterface

Magento\Customer\Api\GroupExcludedWebsiteRepositoryInterface

What it does

This repository interface manages the relationship between customer groups and websites they are excluded from in Magento 2.

Developers use this when implementing multi-website functionality where certain customer groups should not be available on specific websites, such as wholesale groups that should only appear on B2B storefronts.

Public Methods

  • save()
  • getCustomerGroupExcludedWebsites()
  • getAllExcludedWebsites()
  • delete()
  • deleteByWebsite()