Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
customer_address_rollback.php
Go to the documentation of this file.
1 <?php
9 $registry->unregister('isSecureArea');
10 $registry->register('isSecureArea', true);
11 
14  ->create(\Magento\Customer\Model\Address::class);
15 $customerAddress->load(1);
16 if ($customerAddress->getId()) {
17  $customerAddress->delete();
18 }
19 
20 $registry->unregister('isSecureArea');
21 $registry->register('isSecureArea', false);