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-indexer
Block
Backend
Grid
ItemsUpdater.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Indexer\Block\Backend\Grid
;
7
8
class
ItemsUpdater
implements
\Magento\Framework\View\Layout\Argument\UpdaterInterface
9
{
13
protected
$authorization
;
14
18
public
function
__construct
(\
Magento
\Framework\AuthorizationInterface
$authorization
)
19
{
20
$this->authorization =
$authorization
;
21
}
22
28
public
function
update
($argument)
29
{
30
if
(
false
=== $this->authorization->isAllowed(
'Magento_Indexer::changeMode'
)) {
31
unset($argument[
'change_mode_onthefly'
]);
32
unset($argument[
'change_mode_changelog'
]);
33
}
34
return
$argument;
35
}
36
}
Magento\Indexer\Block\Backend\Grid\ItemsUpdater
Definition:
ItemsUpdater.php:8
Magento\Indexer\Block\Backend\Grid\ItemsUpdater\$authorization
$authorization
Definition:
ItemsUpdater.php:13
Magento\Indexer\Block\Backend\Grid\ItemsUpdater\__construct
__construct(\Magento\Framework\AuthorizationInterface $authorization)
Definition:
ItemsUpdater.php:18
Magento\Indexer\Block\Backend\Grid\ItemsUpdater\update
update($argument)
Definition:
ItemsUpdater.php:28
Magento
Magento\Indexer\Block\Backend\Grid