Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Config.php
Go to the documentation of this file.
1 <?php
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 }
$helper
Definition: iframe.phtml:13
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Developer\Helper\Data $helper)
Definition: Config.php:29