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-backend
Block
Cache
Grid
Massaction
ProductionModeVisibilityChecker.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Block\Cache\Grid\Massaction
;
7
8
use
Magento\Backend\Block\Widget\Grid\Massaction\VisibilityCheckerInterface
;
9
use
Magento\Framework\App\State
;
10
14
class
ProductionModeVisibilityChecker
implements
VisibilityCheckerInterface
15
{
19
private
$state;
20
24
public
function
__construct
(
State
$state)
25
{
26
$this->state = $state;
27
}
28
32
public
function
isVisible
()
33
{
34
return
$this->state->getMode() !==
State::MODE_PRODUCTION
;
35
}
36
}
Magento\Framework\App\State\MODE_PRODUCTION
const MODE_PRODUCTION
Definition:
State.php:76
Magento\Backend\Block\Cache\Grid\Massaction
Definition:
ProductionModeVisibilityChecker.php:6
Magento\Backend\Block\Cache\Grid\Massaction\ProductionModeVisibilityChecker\isVisible
isVisible()
Definition:
ProductionModeVisibilityChecker.php:32
Magento\Backend\Block\Cache\Grid\Massaction\ProductionModeVisibilityChecker\__construct
__construct(State $state)
Definition:
ProductionModeVisibilityChecker.php:24
Magento\Framework\App\State
Definition:
State.php:17
Magento\Backend\Block\Cache\Grid\Massaction\ProductionModeVisibilityChecker
Definition:
ProductionModeVisibilityChecker.php:14
Magento\Framework\App\State
Definition:
CleanupFiles.php:7
Magento\Backend\Block\Widget\Grid\Massaction\VisibilityCheckerInterface
Definition:
VisibilityCheckerInterface.php:14