I want to get collection for customer website wise. I have a website id, and now I want all the customers which belong to that particular website id.
I am trying here:
using \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customerFactory
$customers = $this->_customerFactory->create();
foreach($customers as $customer)
{
$this->dataHelper->assignLocationToCustomer($location,$customer);
}
How can I get collection website wise?