Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-customer
Model
ResourceModel
Db
VersionControl
AddressSnapshot.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Model\ResourceModel\Db\VersionControl
;
7
8
use
Magento\Framework\DataObject
;
9
use
Magento\Framework\Model\ResourceModel\Db\VersionControl\Snapshot
;
10
11
class
AddressSnapshot
extends
Snapshot
12
{
16
public
function
isModified
(
DataObject
$entity
)
17
{
18
$result
= parent::isModified(
$entity
);
19
20
if
(!
$result
21
&& !
$entity
->getIsCustomerSaveTransaction()
22
&& $this->isAddressDefault(
$entity
)
23
) {
24
return
true
;
25
}
26
27
return
$result
;
28
}
29
36
private
function
isAddressDefault(
DataObject
$entity
)
37
{
38
return
$entity
->getId() && (
$entity
->getIsDefaultBilling() ||
$entity
->getIsDefaultShipping());
39
}
40
}
Magento\Customer\Model\ResourceModel\Db\VersionControl\AddressSnapshot
Definition:
AddressSnapshot.php:11
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Customer\Model\ResourceModel\Db\VersionControl\AddressSnapshot\isModified
isModified(DataObject $entity)
Definition:
AddressSnapshot.php:16
Magento\Framework\DataObject
Definition:
DataObject.php:15
Magento\Framework\Model\ResourceModel\Db\VersionControl\Snapshot
Definition:
Snapshot.php:11
$entity
$entity
Definition:
element.phtml:22
Magento\Customer\Model\ResourceModel\Db\VersionControl
Definition:
AddressSnapshot.php:6
Magento\Framework\DataObject
Definition:
Cache.php:6