Log in
Model

Allspecificcountries

Magento\Shipping\Model\Config\Source\Allspecificcountries

What it does

This class provides configuration options for shipping method country availability in Magento 2's admin panel.

Developers use this as a source model in system.xml configuration to allow merchants to choose whether a shipping method applies to all allowed countries or only specific countries they select.

Public Methods

  • toOptionArray()