You are here

public function EmailedExport::defaultConfiguration in Webform Scheduled Tasks 8.2

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides TaskPluginBase::defaultConfiguration

File

src/Plugin/WebformScheduledTasks/Task/EmailedExport.php, line 110

Class

EmailedExport
A task which emails an export of a list of webforms.

Namespace

Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasks\Task

Code

public function defaultConfiguration() {
  $exporter_options = $this->exporterManager
    ->getOptions();
  return [
    'exporter_settings' => [],
    'exporter' => key($exporter_options),
    'email_addresses' => '',
    'storage_type' => static::STORAGE_TYPE_FILESYSTEM,
    'delete_submissions' => FALSE,
    'include_attachments' => TRUE,
  ];
}