You are here

public function Email::defaultConfiguration in Search API Saved Searches 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePluginBase::defaultConfiguration

File

src/Plugin/search_api_saved_searches/notification/Email.php, line 153

Class

Email
Provides e-mails as a notification mechanism.

Namespace

Drupal\search_api_saved_searches\Plugin\search_api_saved_searches\notification

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration += [
    'registered_choose_mail' => FALSE,
    'activate' => [
      'send' => TRUE,
      'title' => NULL,
      'body' => NULL,
    ],
    'notification' => [
      'title' => NULL,
      'body' => NULL,
    ],
  ];
  return $configuration;
}