protected function EmailYamlFormHandler::getEmailConfiguration in YAML Form 8
Get mail configuration values.
Return value
array An associative array containing email configuration values.
1 call to EmailYamlFormHandler::getEmailConfiguration()
- EmailYamlFormHandler::getSummary in src/
Plugin/ YamlFormHandler/ EmailYamlFormHandler.php - Returns a render array summarizing the configuration of the form handler.
File
- src/
Plugin/ YamlFormHandler/ EmailYamlFormHandler.php, line 164
Class
- EmailYamlFormHandler
- Emails a form submission.
Namespace
Drupal\yamlform\Plugin\YamlFormHandlerCode
protected function getEmailConfiguration() {
$configuration = $this
->getConfiguration();
$email = [];
foreach ($configuration['settings'] as $key => $value) {
if ($value === 'default') {
$email[$key] = $this
->getDefaultConfigurationValue($key);
}
else {
$email[$key] = $value;
}
}
return $email;
}