Log in
Interface

GenericInterface

Magento\Shipping\Model\Carrier\Source\GenericInterface

What it does

This interface serves as a marker interface for shipping carrier configuration source models in Magento 2.

Developers implement this interface when creating custom source models that provide option arrays (like dropdown values) for shipping carrier configuration fields in the admin panel.

It extends OptionSourceInterface to ensure implementing classes provide the toOptionArray() method.