File tree Expand file tree Collapse file tree 5 files changed +3
-13
lines changed
ViewModel/Customer/Privacy Expand file tree Collapse file tree 5 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 1818use Magento \Framework \View \Element \Template ;
1919use Magento \Framework \View \FileSystem as ViewFileSystem ;
2020use Magento \Framework \View \Page \Config ;
21- use Magento \Framework \View \Page \Config \RendererInterface ;
2221use Opengento \Gdpr \Service \Export \Renderer \HtmlRenderer \LayoutInitiatorInterface ;
2322use Opengento \Gdpr \Service \Export \Renderer \HtmlRenderer \View \RendererFactory ;
2423use function extract ;
@@ -76,8 +75,6 @@ function () use ($data): string { return $this->renderHtml($data); }
7675 }
7776
7877 /**
79- * @param array $data
80- * @return string
8178 * @throws Exception
8279 */
8380 private function renderHtml (array $ data ): string
@@ -105,8 +102,6 @@ private function renderHtml(array $data): string
105102 }
106103
107104 /**
108- * @param array $viewVars
109- * @return string
110105 * @throws Exception
111106 */
112107 private function renderPage (array $ viewVars ): string
Original file line number Diff line number Diff line change 77
88namespace Opengento \Gdpr \ViewModel \Customer \Privacy ;
99
10- use Magento \Cms \Block \Block ;
1110use Magento \Cms \Block \BlockByIdentifier ;
1211use Magento \Framework \App \Config \ScopeConfigInterface ;
1312use Magento \Framework \View \Element \Block \ArgumentInterface ;
@@ -49,8 +48,8 @@ public function getErasureInformationHtml(): string
4948 public function getAnonymizeInformationHtml (): string
5049 {
5150 return $ this ->anonymizeInformation ??= $ this ->blockFactory ->createBlock (
52- Block ::class,
53- ['data ' => ['block_id ' => (string ) $ this ->scopeConfig ->getValue (
51+ BlockByIdentifier ::class,
52+ ['data ' => ['identifier ' => (string ) $ this ->scopeConfig ->getValue (
5453 self ::CONFIG_PATH_ANONYMIZE_INFORMATION_BLOCK ,
5554 ScopeInterface::SCOPE_STORE
5655 )]]
Original file line number Diff line number Diff line change 77
88namespace Opengento \Gdpr \ViewModel \Customer \Privacy ;
99
10- use Magento \Cms \Block \Block ;
1110use Magento \Cms \Block \BlockByIdentifier ;
1211use Magento \Framework \App \Config \ScopeConfigInterface ;
1312use Magento \Framework \View \Element \Block \ArgumentInterface ;
@@ -22,9 +21,6 @@ final class ExportDataProvider implements ArgumentInterface
2221
2322 private BlockFactory $ blockFactory ;
2423
25- /**
26- * @var string|null
27- */
2824 private ?string $ exportInformation ;
2925
3026 public function __construct (
Original file line number Diff line number Diff line change 77
88namespace Opengento \Gdpr \ViewModel \Customer \Privacy ;
99
10- use Magento \Cms \Block \Block ;
1110use Magento \Cms \Block \BlockByIdentifier ;
1211use Magento \Framework \App \Config \ScopeConfigInterface ;
1312use Magento \Framework \View \Element \Block \ArgumentInterface ;
Original file line number Diff line number Diff line change 1010 <sequence >
1111 <module name =" Magento_Theme" />
1212 <module name =" Magento_Config" />
13+ <module name =" Magento_Cookie" />
1314 <module name =" Magento_Customer" />
1415 <module name =" Magento_Quote" />
1516 <module name =" Magento_Sales" />
You can’t perform that action at this time.
0 commit comments