You are here

protected function EmailYamlFormHandler::getMailSystemSender in YAML Form 8

Get the Mail System's sender module name.

Return value

string The Mail System's sender module name.

1 call to EmailYamlFormHandler::getMailSystemSender()
EmailYamlFormHandler::getMessage in src/Plugin/YamlFormHandler/EmailYamlFormHandler.php
Get a fully populated email for a form submission.

File

src/Plugin/YamlFormHandler/EmailYamlFormHandler.php, line 704

Class

EmailYamlFormHandler
Emails a form submission.

Namespace

Drupal\yamlform\Plugin\YamlFormHandler

Code

protected function getMailSystemSender() {
  $mailsystem_config = $this->configFactory
    ->get('mailsystem.settings');
  $mailsystem_sender = $mailsystem_config
    ->get('yamlform.sender') ?: $mailsystem_config
    ->get('defaults.sender');
  return $mailsystem_sender;
}