RegionSource
Magento\InventoryAdminUi\Model\OptionSource\RegionSource
What it does
This class provides a list of geographical regions/states as options for dropdown fields in the Magento admin UI, specifically for the Inventory Admin UI module.
Developers use this class when they need to populate region selection fields in admin forms, such as when configuring inventory sources or warehouse locations.
It implements OptionSourceInterface to standardize how region data is formatted for UI components.
Public Methods
- toOptionArray()