Factory
SourceFactory
Magento\Config\Model\Config\SourceFactory
What it does
This factory class is responsible for creating configuration source model instances in Magento 2.
Developers use it when they need to instantiate backend source models that provide option arrays for system configuration dropdowns and multi-select fields.
It retrieves the appropriate source model from the object manager based on the provided model class name.
Public Methods
- create()