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-config
Model
Config
Structure
ElementVisibility
ConcealInProductionWithoutScdOnDemand.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Config\Model\Config\Structure\ElementVisibility
;
9
10
use
Magento\Config\Model\Config\Structure\ElementVisibilityInterface
;
11
use
Magento\Framework\App\DeploymentConfig
;
12
use
Magento\Framework\Config\ConfigOptionsListConstants
as Constants;
13
23
class
ConcealInProductionWithoutScdOnDemand
implements
ElementVisibilityInterface
24
{
28
private
$concealInProduction;
29
33
private
$deploymentConfig;
34
41
public
function
__construct
(
42
ConcealInProductionFactory $concealInProductionFactory,
43
DeploymentConfig
$deploymentConfig,
44
array $configs = [],
45
array $exemptions = []
46
) {
47
$this->concealInProduction = $concealInProductionFactory
48
->create([
'configs'
=> $configs,
'exemptions'
=> $exemptions]);
49
$this->deploymentConfig =
$deploymentConfig
;
50
}
51
56
public
function
isHidden
(
$path
): bool
57
{
58
if
(!$this->deploymentConfig->getConfigData(Constants::CONFIG_PATH_SCD_ON_DEMAND_IN_PRODUCTION)) {
59
return
$this->concealInProduction->isHidden(
$path
);
60
}
61
return
false
;
62
}
63
68
public
function
isDisabled
(
$path
): bool
69
{
70
if
(!$this->deploymentConfig->getConfigData(Constants::CONFIG_PATH_SCD_ON_DEMAND_IN_PRODUCTION)) {
71
return
$this->concealInProduction->isDisabled(
$path
);
72
}
73
return
false
;
74
}
75
}
Magento\Config\Model\Config\Structure\ElementVisibilityInterface
Definition:
ElementVisibilityInterface.php:14
Magento\Framework\App\DeploymentConfig
Definition:
DeploymentConfig.php:17
Magento\Config\Model\Config\Structure\ElementVisibility\ConcealInProductionWithoutScdOnDemand\isDisabled
isDisabled($path)
Definition:
ConcealInProductionWithoutScdOnDemand.php:68
$deploymentConfig
$deploymentConfig
Definition:
health_check.php:18
Magento\Config\Model\Config\Structure\ElementVisibility\ConcealInProductionWithoutScdOnDemand
Definition:
ConcealInProductionWithoutScdOnDemand.php:23
Magento\Config\Model\Config\Structure\ElementVisibility\ConcealInProductionWithoutScdOnDemand\isHidden
isHidden($path)
Definition:
ConcealInProductionWithoutScdOnDemand.php:56
Magento\Framework\Config\ConfigOptionsListConstants
Definition:
ConfigOptionsListConstants.php:16
Magento\Config\Model\Config\Structure\ElementVisibility
Definition:
ConcealInProduction.php:8
Magento\Config\Model\Config\Structure\ElementVisibility\ConcealInProductionWithoutScdOnDemand\__construct
__construct(ConcealInProductionFactory $concealInProductionFactory, DeploymentConfig $deploymentConfig, array $configs=[], array $exemptions=[])
Definition:
ConcealInProductionWithoutScdOnDemand.php:41
Magento\Framework\App\DeploymentConfig
Definition:
CommentParser.php:6
$path
$path
Definition:
import_with_filesystem_images.php:14