You are here

public function EmailWebformHandler::defaultConfiguration in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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

2 calls to EmailWebformHandler::defaultConfiguration()
EmailWebformHandler::setConfiguration in src/Plugin/WebformHandler/EmailWebformHandler.php
Sets the configuration for this plugin instance.
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 238

Class

EmailWebformHandler
Emails a webform submission.

Namespace

Drupal\webform\Plugin\WebformHandler

Code

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' => [],
  ];
}