Log in
Model

Allspecificcountries

Magento\Shipping\Model\Config\Source\Allspecificcountries

What it does

This class provides configuration options for shipping methods to either apply to all allowed countries or specific countries only.

Developers use this as a source model in system configuration XML files to populate dropdown fields where merchants select shipping method availability scope.

It's commonly used in shipping carrier configuration sections in the Magento admin panel.

Public Methods

  • toOptionArray()