Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
Public Member Functions
Config Class Reference
Inheritance diagram for Config:
ConfigInterface

Public Member Functions

 __construct (ScopeConfigInterface $scopeConfig)
 
 isEnabled ()
 
 emailTemplate ()
 
 emailSender ()
 
 emailRecipient ()
 

Additional Inherited Members

- Data Fields inherited from ConfigInterface
const XML_PATH_EMAIL_RECIPIENT = 'contact/email/recipient_email'
 
const XML_PATH_EMAIL_SENDER = 'contact/email/sender_email_identity'
 
const XML_PATH_EMAIL_TEMPLATE = 'contact/email/email_template'
 
const XML_PATH_ENABLED = 'contact/contact/enabled'
 

Detailed Description

Contact module configuration

Definition at line 14 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ScopeConfigInterface  $scopeConfig)
Parameters
ScopeConfigInterface$scopeConfig

Definition at line 24 of file Config.php.

25  {
26  $this->scopeConfig = $scopeConfig;
27  }

Member Function Documentation

◆ emailRecipient()

emailRecipient ( )

{Return email recipient address

Returns
string
Since
100.2.0
}

Implements ConfigInterface.

Definition at line 65 of file Config.php.

66  {
67  return $this->scopeConfig->getValue(
70  );
71  }

◆ emailSender()

emailSender ( )

{Return email sender address

Returns
string
Since
100.2.0
}

Implements ConfigInterface.

Definition at line 54 of file Config.php.

55  {
56  return $this->scopeConfig->getValue(
59  );
60  }

◆ emailTemplate()

emailTemplate ( )

{Return email template identifier

Returns
string
Since
100.2.0
}

Implements ConfigInterface.

Definition at line 43 of file Config.php.

44  {
45  return $this->scopeConfig->getValue(
48  );
49  }

◆ isEnabled()

isEnabled ( )

{Check if contacts module is enabled

Returns
bool
Since
100.2.0
}

Implements ConfigInterface.

Definition at line 32 of file Config.php.

33  {
34  return $this->scopeConfig->isSetFlag(
35  self::XML_PATH_ENABLED,
37  );
38  }

The documentation for this class was generated from the following file: