File tree Expand file tree Collapse file tree 7 files changed +17
-14
lines changed
base/templates/export/renderer
templates/account/privacy Expand file tree Collapse file tree 7 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 14
14
use Magento \Framework \Data \Collection \AbstractDb ;
15
15
use Magento \Framework \Exception \CouldNotDeleteException ;
16
16
use Magento \Framework \Exception \LocalizedException ;
17
- use Magento \Framework \Exception \NoSuchEntityException ;
18
17
use Magento \Framework \Model \Context ;
19
18
use Magento \Framework \Model \ResourceModel \AbstractResource ;
20
19
use Magento \Framework \Registry ;
@@ -52,7 +51,6 @@ public function __construct(
52
51
* @return $this
53
52
* @throws CouldNotDeleteException
54
53
* @throws LocalizedException
55
- * @throws NoSuchEntityException
56
54
*/
57
55
public function afterSave (): self
58
56
{
Original file line number Diff line number Diff line change @@ -64,6 +64,6 @@ public function getLearnMoreUrl(): string
64
64
return $ this ->helperPage ->getPageUrl ((string ) $ this ->scopeConfig ->getValue (
65
65
self ::CONFIG_PATH_GENERAL_INFORMATION_PAGE ,
66
66
ScopeInterface::SCOPE_STORE
67
- ));
67
+ )) ?? ' # ' ;
68
68
}
69
69
}
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ final class HtmlRenderer extends AbstractRenderer
33
33
*/
34
34
private $ appState ;
35
35
36
+ /**
37
+ * @var DesignInterface
38
+ */
36
39
private $ design ;
37
40
38
41
/**
Original file line number Diff line number Diff line change 27
27
- Payment Data
28
28
- Invitation Data
29
29
30
+ # Export
31
+
32
+ Invalidation on entity updates
33
+
30
34
## yu
31
35
32
36
https://github.com/magento/architecture/pull/145/files
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ $viewModel = $block->getData('viewModel');
22
22
$ exportData = array_filter ($ viewModel ->toArray ());
23
23
24
24
if (!function_exists ('formatLabel ' )) {
25
- function formatLabel (string $ label ): string
25
+ function formatLabel ($ label ): string
26
26
{
27
- return ucwords (str_replace ('_ ' , ' ' , $ label ));
27
+ return ucwords (str_replace ('_ ' , ' ' , ( string ) $ label ));
28
28
}
29
29
}
30
30
if (!function_exists ('renderNestedItems ' )) {
Original file line number Diff line number Diff line change 11
11
<block class =" Magento\Framework\View\Element\Html\Link\Current" name =" customer-account-navigation-privacy-link" after =" customer-account-navigation-wish-list-link" ifconfig =" gdpr/general/enabled" >
12
12
<arguments >
13
13
<argument name =" path" xsi : type =" string" >customer/privacy/settings</argument >
14
- <argument name =" label" xsi : type =" string" >Privacy settings </argument >
14
+ <argument name =" label" xsi : type =" string" translate = " true " >Privacy Settings </argument >
15
15
</arguments >
16
16
</block >
17
17
</referenceBlock >
Original file line number Diff line number Diff line change @@ -48,15 +48,13 @@ $eraseCustomerDataProvider = $block->getData('eraseCustomerDataProvider');
48
48
<?= $ eraseDataProvider ->getAnonymizeInformationHtml () ?>
49
49
</div>
50
50
<?php endif ; ?>
51
- <form action="<?= $ escaper ->escapeUrl ($ block ->getData ('eraseActionUrl ' )) ?> " method="post">
52
- <div class="actions-toolbar">
53
- <div class="primary">
54
- <button type="submit" class="action submit primary primary-danger" id="delete">
55
- <span><?= $ escaper ->escapeHtml (__ ('Erase Personal Data ' )) ?> </span>
56
- </button>
57
- </div>
51
+ <div class="actions-toolbar">
52
+ <div class="primary">
53
+ <a href="<?= $ escaper ->escapeUrl ($ block ->getData ('eraseActionUrl ' )) ?> " class="action primary primary-danger" id="delete">
54
+ <span><?= $ escaper ->escapeHtml (__ ('Erase Personal Data ' )) ?> </span>
55
+ </a>
58
56
</div>
59
- </form >
57
+ </div >
60
58
<?php else : ?>
61
59
<div class="message info">
62
60
<span><?= $ escaper ->escapeHtml (__ ('Your account cannot be erased while you have pending orders. ' )) ?> </span>
You can’t perform that action at this time.
0 commit comments