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 
13 class Config implements \Magento\Framework\Translate\Inline\ConfigInterface
14 {
18  protected $config;
19 
23  protected $devHelper;
24 
29  public function __construct(
30  \Magento\Backend\App\ConfigInterface $config,
31  \Magento\Developer\Helper\Data $devHelper
32  ) {
33  $this->config = $config;
34  $this->devHelper = $devHelper;
35  }
36 
40  public function isActive($scope = null)
41  {
42  return $this->config->isSetFlag('dev/translate_inline/active_admin');
43  }
44 
48  public function isDevAllowed($scope = null)
49  {
50  return $this->devHelper->isDevAllowed($scope);
51  }
52 }
__construct(\Magento\Backend\App\ConfigInterface $config, \Magento\Developer\Helper\Data $devHelper)
Definition: Config.php:29