Skip to content

Admin Config

Code Slicer edited this page Sep 12, 2022 · 4 revisions

Handles core_config_data (admin config related fields) changes. Import it as follows:

private Migration\Facade\AdminConfig $adminConfig;

public function __construct(
    Migration\Context $context,
    Migration\Facade\AdminConfig $adminConfig
) {
    parent::__construct($context);
    $this->adminConfig = $adminConfig;
}

get($path, $scope = ScopeConfig::SCOPE_TYPE_DEFAULT, $scopeId = null)

Retrieve existing config for given path:

Clone this wiki locally