12 use Magento\Theme\Model\ResourceModel\Design\Config\CollectionFactory;
61 $backendModelData = array_replace_recursive(
64 'path' =>
$data[
'config'][
'path'],
65 'scope' =>
$data[
'scope'],
66 'scope_id' =>
$data[
'scopeId'],
67 'field_config' =>
$data[
'config'],
71 $backendType = isset(
$data[
'config'][
'backend_model'])
72 ?
$data[
'config'][
'backend_model']
77 $backendModel->setValue(
$data[
'value']);
91 return $this->_objectManager->create($backendType, [
'data' =>
$data]);
114 if (!isset($this->backendTypes[
$path])) {
115 $metadata = $this->metadataProvider->get();
121 $this->backendTypes[
$path] = $backendType;
123 return $this->backendTypes[
$path];
138 return $dataKey !==
false ?
$storedData[$dataKey] : [];
150 if (!isset($this->storedData[$scope][$scopeId])) {
155 $this->storedData[$scope][$scopeId] =
$collection->getData();
157 return $this->storedData[$scope][$scopeId];
167 if (!$this->metadata) {
168 $this->metadata = $this->metadataProvider->get();
169 array_walk($this->metadata,
function (&
$value) {
getScopeData($scope, $scopeId)
getNewBackendModel($backendType, array $data=[])
getBackendTypeByPath($path)
getStoredData($scope, $scopeId, $path)
__construct(ObjectManagerInterface $objectManager, MetadataProvider $metadataProvider, CollectionFactory $collectionFactory)
createByPath($path, array $data=[])