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
framework
EntityManager
AbstractModelHydrator.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\EntityManager
;
7
11
class
AbstractModelHydrator
implements
HydratorInterface
12
{
16
public
function
extract
(
$entity
)
17
{
18
return
$entity
->getData();
19
}
20
24
public
function
hydrate
(
$entity
, array
$data
)
25
{
26
$entity
->setData(array_merge(
$entity
->getData(),
$data
));
27
return
$entity
;
28
}
29
}
Magento\Framework\EntityManager\AbstractModelHydrator
Definition:
AbstractModelHydrator.php:11
Magento\Framework\EntityManager\AbstractModelHydrator\hydrate
hydrate($entity, array $data)
Definition:
AbstractModelHydrator.php:24
Magento\Framework\EntityManager
Definition:
AbstractModelHydrator.php:6
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
$entity
$entity
Definition:
element.phtml:22
Magento\Framework\EntityManager\HydratorInterface
Definition:
HydratorInterface.php:12
Magento\Framework\EntityManager\AbstractModelHydrator\extract
extract($entity)
Definition:
AbstractModelHydrator.php:16