Log in
Model

GetUnassignedSalesChannelsForStock

Magento\InventorySales\Model\GetUnassignedSalesChannelsForStock

What it does

This class identifies sales channels (websites) that are being removed from a stock.

When a stock's sales channel assignments are updated, this service compares the currently assigned channels in the database with the new assignments to determine which channels will be unassigned.

Developers use this during stock configuration updates to handle cleanup or validation logic for removed channel assignments.

Public Methods

  • execute()