Contact base helper
- Deprecated:
- 100.2.0
- See also
- \Magento\Contact\Model\ConfigInterface
Definition at line 21 of file Data.php.
◆ __construct()
- Parameters
-
\Magento\Framework\App\Helper\Context | $context | |
\Magento\Customer\Model\Session | $customerSession | |
CustomerViewHelper | $customerViewHelper | |
Definition at line 52 of file Data.php.
57 $this->_customerSession = $customerSession;
58 $this->_customerViewHelper = $customerViewHelper;
59 parent::__construct($context);
◆ getPostValue()
Get value from POST by key
- Parameters
-
- Returns
- string
Definition at line 118 of file Data.php.
120 if (
null === $this->postData) {
121 $this->postData = (array) $this->getDataPersistor()->get(
'contact_us');
122 $this->getDataPersistor()->clear(
'contact_us');
125 if (isset($this->postData[$key])) {
126 return (
string) $this->postData[$key];
◆ isEnabled()
Check if enabled
- Returns
- string|null
- Deprecated:
- 100.2.0 use \Magento\Contact\Api\ConfigInterface::isEnabled() instead
Definition at line 68 of file Data.php.
70 return $this->scopeConfig->getValue(
71 self::XML_PATH_ENABLED,
72 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
◆ $_customerSession
◆ $_customerViewHelper
◆ XML_PATH_ENABLED
const XML_PATH_ENABLED = ConfigInterface::XML_PATH_ENABLED |
The documentation for this class was generated from the following file:
- vendor/magento/module-contact/Helper/Data.php