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-signifyd
Model
SalesOrderGrid
OrderGridUpdater.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Signifyd\Model\SalesOrderGrid
;
7
8
use
Magento\Framework\App\Config\ScopeConfigInterface
;
9
use
Magento\Sales\Model\ResourceModel\GridInterface
;
10
16
class
OrderGridUpdater
17
{
21
private
$globalConfig;
22
26
private
$entityGrid;
27
32
public
function
__construct
(
33
GridInterface
$entityGrid,
34
ScopeConfigInterface
$globalConfig
35
) {
36
$this->globalConfig = $globalConfig;
37
$this->entityGrid = $entityGrid;
38
}
39
49
public
function
update
($orderId)
50
{
51
if
(!$this->globalConfig->getValue(
'dev/grid/async_indexing'
)) {
52
$this->entityGrid->refresh($orderId);
53
}
54
}
55
}
Magento\Sales\Model\ResourceModel\GridInterface
Definition:
GridInterface.php:14
Magento\Signifyd\Model\SalesOrderGrid\OrderGridUpdater\update
update($orderId)
Definition:
OrderGridUpdater.php:49
Magento\Signifyd\Model\SalesOrderGrid\OrderGridUpdater
Definition:
OrderGridUpdater.php:16
Magento\Signifyd\Model\SalesOrderGrid
Definition:
NotSyncedOrderIdListProvider.php:6
Magento\Signifyd\Model\SalesOrderGrid\OrderGridUpdater\__construct
__construct(GridInterface $entityGrid, ScopeConfigInterface $globalConfig)
Definition:
OrderGridUpdater.php:32
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15