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-contact
Model
Config.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Contact\Model
;
7
8
use
Magento\Framework\App\Config\ScopeConfigInterface
;
9
use
Magento\Store\Model\ScopeInterface
;
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,
36
ScopeInterface::SCOPE_STORE
37
);
38
}
39
43
public
function
emailTemplate
()
44
{
45
return
$this->scopeConfig->getValue(
46
ConfigInterface::XML_PATH_EMAIL_TEMPLATE
,
47
ScopeInterface::SCOPE_STORE
48
);
49
}
50
54
public
function
emailSender
()
55
{
56
return
$this->scopeConfig->getValue(
57
ConfigInterface::XML_PATH_EMAIL_SENDER
,
58
ScopeInterface::SCOPE_STORE
59
);
60
}
61
65
public
function
emailRecipient
()
66
{
67
return
$this->scopeConfig->getValue(
68
ConfigInterface::XML_PATH_EMAIL_RECIPIENT
,
69
ScopeInterface::SCOPE_STORE
70
);
71
}
72
}
Magento\Contact\Model\ConfigInterface\XML_PATH_EMAIL_TEMPLATE
const XML_PATH_EMAIL_TEMPLATE
Definition:
ConfigInterface.php:29
Magento\Store\Model\ScopeInterface\SCOPE_STORE
const SCOPE_STORE
Definition:
ScopeInterface.php:21
Magento\Contact\Model\ConfigInterface
Definition:
ConfigInterface.php:14
Magento\Contact\Model\Config\emailTemplate
emailTemplate()
Definition:
Config.php:43
Magento\Contact\Model\Config\__construct
__construct(ScopeConfigInterface $scopeConfig)
Definition:
Config.php:24
Magento\Contact\Model\Config\isEnabled
isEnabled()
Definition:
Config.php:32
Magento\Contact\Model\Config
Definition:
Config.php:14
Magento\Store\Model\ScopeInterface
Definition:
ScopeInterface.php:12
Magento\Contact\Model\ConfigInterface\XML_PATH_EMAIL_SENDER
const XML_PATH_EMAIL_SENDER
Definition:
ConfigInterface.php:24
Magento\Contact\Model
Definition:
ConfigTest.php:7
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
Magento\Contact\Model\Config\emailRecipient
emailRecipient()
Definition:
Config.php:65
Magento\Contact\Model\Config\emailSender
emailSender()
Definition:
Config.php:54
Magento\Contact\Model\ConfigInterface\XML_PATH_EMAIL_RECIPIENT
const XML_PATH_EMAIL_RECIPIENT
Definition:
ConfigInterface.php:19