Log in
Model

WebsiteSource

Magento\InventorySalesAdminUi\Model\OptionSource\WebsiteSource

What it does

This class provides a list of available websites in Magento as an option array for use in admin UI forms and grids.

It excludes the admin website and returns website codes as values with website names as labels.

Developers would use this when building admin forms or filters that need a dropdown of websites for inventory sales configuration.

Public Methods

  • toOptionArray()