51 $scope = $this->request->getParam(
'scope');
52 $scopeId = $this->request->getParam(
'scope_id');
56 $data[$scope][
'scope'] = $scope;
57 $data[$scope][
'scope_id'] = $scopeId;
71 $designConfig = $this->designConfigRepository->getByScope($scope, $scopeId);
72 $fieldsData = $designConfig->getExtensionAttributes()->getDesignConfigData();
74 foreach ($fieldsData as $fieldData) {
75 $data[$scope][$fieldData->getFieldConfig()[
'field']] = $fieldData->getValue();
78 $storedData = $this->dataPersistor->get(
'theme_design_config');
83 $this->dataPersistor->clear(
'theme_design_config');
loadData($scope, $scopeId)
__construct(RequestInterface $request, DesignConfigRepositoryInterface $designConfigRepository, DataPersistorInterface $dataPersistor)