You are here

protected function MassContact::getDefaultConfiguration in Mass Contact 8

Set default config values.

Return value

array The default configuration as defined in the mass_contact.settings config.

2 calls to MassContact::getDefaultConfiguration()
MassContact::processMassContactMessage in src/MassContact.php
Main entry point for queuing mass contact emails.
MassContact::queueRecipients in src/MassContact.php
Takes a mass contact, calculates recipients and queues them for delivery.

File

src/MassContact.php, line 155

Class

MassContact
The Mass Contact helper service.

Namespace

Drupal\mass_contact

Code

protected function getDefaultConfiguration() {
  $default = [
    'use_bcc' => $this->config
      ->get('use_bcc'),
    'sender_name' => $this->config
      ->get('default_sender_name'),
    'sender_mail' => $this->config
      ->get('default_sender_email'),
    'create_archive_copy' => $this->config
      ->get('create_archive_copy'),
    // @todo Make the default configurable.
    'send_me_copy_user' => FALSE,
    'respect_opt_out' => TRUE,
  ];
  return $default;
}