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-translation
Model
Inline
Config.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Translation\Model\Inline
;
7
11
class
Config
implements
\Magento\Framework\Translate\Inline\ConfigInterface
12
{
18
protected
$scopeConfig
;
19
23
protected
$devHelper
;
24
29
public
function
__construct
(
30
\
Magento
\Framework\
App
\
Config
\ScopeConfigInterface
$scopeConfig
,
31
\
Magento
\Developer\Helper\Data
$helper
32
) {
33
$this->scopeConfig =
$scopeConfig
;
34
$this->devHelper =
$helper
;
35
}
36
40
public
function
isActive
($scope =
null
)
41
{
42
return
$this->scopeConfig->isSetFlag(
43
'dev/translate_inline/active'
,
44
\
Magento
\Store\Model\ScopeInterface::SCOPE_STORE,
45
$scope
46
);
47
}
48
52
public
function
isDevAllowed
($scope =
null
)
53
{
54
return
$this->devHelper->isDevAllowed($scope);
55
}
56
}
Magento\Framework\App
$helper
$helper
Definition:
iframe.phtml:13
Magento\Translation\Model\Inline\Config\$devHelper
$devHelper
Definition:
Config.php:23
Magento\Translation\Model\Inline\Config\isActive
isActive($scope=null)
Definition:
Config.php:40
Magento\Translation\Model\Inline\Config\isDevAllowed
isDevAllowed($scope=null)
Definition:
Config.php:52
Magento\Translation\Model\Inline
Definition:
CacheManager.php:7
Magento\Translation\Model\Inline\Config\__construct
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Developer\Helper\Data $helper)
Definition:
Config.php:29
Magento\Translation\Model\Inline\Config
Definition:
Config.php:11
Magento
Magento\Translation\Model\Inline\Config\$scopeConfig
$scopeConfig
Definition:
Config.php:18