Log in
Factory

PreparedValueFactory

Magento\Config\Model\PreparedValueFactory

What it does

This factory class creates fully configured Value objects for Magento configuration settings.

Developers use it when they need to programmatically save configuration values with proper scope (default, website, or store), as it handles all the setup including loading backend models, resolving scope IDs, and preparing the value object with all necessary metadata from the system.xml structure.

Public Methods

  • create()