Log in
Model

Allregion

Magento\Directory\Model\Config\Source\Allregion

What it does

This class provides a formatted list of all regions/states grouped by country for use in configuration dropdowns and form fields.

Developers use this when they need to populate select inputs with region options organized by country, such as in admin configuration panels or address forms that support multi-select functionality.

Public Methods

  • toOptionArray()
  • sortRegionCountries()