You are here

public function UserNotificationSettings::getDefaultSettings in Comment Notify 8

Returns the default values of the user notification settings.

2 calls to UserNotificationSettings::getDefaultSettings()
UserNotificationSettings::getSetting in src/UserNotificationSettings.php
Get a user's default preference.
UserNotificationSettings::getSettings in src/UserNotificationSettings.php
Get the notification preferences for a specific user.

File

src/UserNotificationSettings.php, line 70

Class

UserNotificationSettings
Defines the Comment notify user settings.

Namespace

Drupal\comment_notify

Code

public function getDefaultSettings() {
  $config = $this->configFactory
    ->get('comment_notify.settings');
  return [
    'comment_notify' => $config
      ->get('enable_default.watcher'),
    'entity_notify' => $config
      ->get('enable_default.entity_author'),
  ];
}