/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/App/Config/ConfigSourceInterface.php
39 строк
1005 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Provide access to data. Each Source can be responsible for each storage, where config data can be placed * * Copyright 2016 Adobe * All Rights Reserved. */ namespace Magento\Framework\App\Config; /** * Interface ConfigSourceInterface * * @api */ interface ConfigSourceInterface { /** * Retrieve configuration raw data array. * * @param string $path The configuration path (e.g. section_id/group_id/field_id) * @return string|array Array will be returned if you use part of path (e.g. scope/scope_code/section_id) * ```php * [ * 'group1' => * [ * 'field1' => 'value1', * 'field2' => 'value2' * ], * 'group2' => * [ * 'field1' => 'value3' * ] * ] * ``` * And string will be returned if you use full path to field (e.g. scope/scope_code/section_id/group_id/field_id) * E.g. 'value1' */ public function get($path = ''); }