Log in
Model

Config

Magento\Config\Model\ResourceModel\Config

What it does

This resource model manages the persistence of system configuration values in the core_config_data database table.

Developers use this class when they need to programmatically save or delete configuration settings at different scopes (default, website, or store view).

It handles both creating new configuration entries and updating existing ones, while also triggering cache invalidation through the poison pill mechanism.

Public Methods

  • saveConfig()
  • deleteConfig()