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
6 namespace Magento\Contact\Model;
7 
10 
14 class Config implements ConfigInterface
15 {
19  private $scopeConfig;
20 
24  public function __construct(ScopeConfigInterface $scopeConfig)
25  {
26  $this->scopeConfig = $scopeConfig;
27  }
28 
32  public function isEnabled()
33  {
34  return $this->scopeConfig->isSetFlag(
35  self::XML_PATH_ENABLED,
37  );
38  }
39 
43  public function emailTemplate()
44  {
45  return $this->scopeConfig->getValue(
48  );
49  }
50 
54  public function emailSender()
55  {
56  return $this->scopeConfig->getValue(
59  );
60  }
61 
65  public function emailRecipient()
66  {
67  return $this->scopeConfig->getValue(
70  );
71  }
72 }
__construct(ScopeConfigInterface $scopeConfig)
Definition: Config.php:24