Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Data.php
Go to the documentation of this file.
1 <?php
13 
15 {
19  protected $_backendConfig;
20 
28  public function __construct(
29  \Magento\Framework\App\Helper\Context $context,
30  \Magento\Store\Model\StoreManager $storeManager,
31  \Magento\Framework\Filesystem $filesystem,
32  \Magento\Captcha\Model\CaptchaFactory $factory,
33  \Magento\Backend\App\ConfigInterface $backendConfig
34  ) {
35  $this->_backendConfig = $backendConfig;
36  parent::__construct($context, $storeManager, $filesystem, $factory);
37  }
38 
46  public function getConfig($key, $store = null)
47  {
48  return $this->_backendConfig->getValue('admin/captcha/' . $key);
49  }
50 
57  protected function _getWebsiteCode($website = null)
58  {
59  return 'admin';
60  }
61 }
$storeManager
__construct(\Magento\Framework\App\Helper\Context $context, \Magento\Store\Model\StoreManager $storeManager, \Magento\Framework\Filesystem $filesystem, \Magento\Captcha\Model\CaptchaFactory $factory, \Magento\Backend\App\ConfigInterface $backendConfig)
Definition: Data.php:28
$filesystem
getConfig($key, $store=null)
Definition: Data.php:46