public function EmailWebformHandler::defaultConfiguration in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformHandler/EmailWebformHandler.php \Drupal\webform\Plugin\WebformHandler\EmailWebformHandler::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides WebformHandlerBase::defaultConfiguration
1 call to EmailWebformHandler::defaultConfiguration()
- ScheduleEmailWebformHandler::defaultConfiguration in modules/
webform_scheduled_email/ src/ Plugin/ WebformHandler/ ScheduleEmailWebformHandler.php - Gets default configuration for this plugin.
1 method overrides EmailWebformHandler::defaultConfiguration()
- ScheduleEmailWebformHandler::defaultConfiguration in modules/
webform_scheduled_email/ src/ Plugin/ WebformHandler/ ScheduleEmailWebformHandler.php - Gets default configuration for this plugin.
File
- src/
Plugin/ WebformHandler/ EmailWebformHandler.php, line 184
Class
- EmailWebformHandler
- Emails a webform submission.
Namespace
Drupal\webform\Plugin\WebformHandlerCode
public function defaultConfiguration() {
return [
'states' => [
WebformSubmissionInterface::STATE_COMPLETED,
],
'to_mail' => static::DEFAULT_VALUE,
'to_options' => [],
'cc_mail' => '',
'cc_options' => [],
'bcc_mail' => '',
'bcc_options' => [],
'from_mail' => static::DEFAULT_VALUE,
'from_options' => [],
'from_name' => static::DEFAULT_VALUE,
'subject' => static::DEFAULT_VALUE,
'body' => static::DEFAULT_VALUE,
'excluded_elements' => [],
'ignore_access' => FALSE,
'exclude_empty' => TRUE,
'exclude_empty_checkbox' => FALSE,
'exclude_attachments' => FALSE,
'html' => TRUE,
'attachments' => FALSE,
'twig' => FALSE,
'debug' => FALSE,
'reply_to' => '',
'return_path' => '',
'sender_mail' => '',
'sender_name' => '',
'theme_name' => '',
'parameters' => [],
];
}