You are here

public function EmailWebformHandler::getEmailConfiguration in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformHandler/EmailWebformHandler.php \Drupal\webform\Plugin\WebformHandler\EmailWebformHandler::getEmailConfiguration()

Get mail configuration values.

Return value

array An associative array containing email configuration values, along with the default configuration values.

1 call to EmailWebformHandler::getEmailConfiguration()
EmailWebformHandler::getSummary in src/Plugin/WebformHandler/EmailWebformHandler.php
Returns a render array summarizing the configuration of the webform handler.

File

src/Plugin/WebformHandler/EmailWebformHandler.php, line 331

Class

EmailWebformHandler
Emails a webform submission.

Namespace

Drupal\webform\Plugin\WebformHandler

Code

public function getEmailConfiguration() {
  $settings = $this
    ->getSettings();
  $email = [];
  foreach ($settings as $key => $value) {
    $email[$key] = $value === static::DEFAULT_VALUE ? $this
      ->getDefaultConfigurationValue($key) : $value;
  }
  return $email;
}