public function UserNotificationSettings::getSetting in Comment Notify 8
Get a user's default preference.
Parameters
$uid:
$setting: Possible values: 'comment_notify', 'entity_notify'
Return value
string
File
- src/
UserNotificationSettings.php, line 97
Class
- UserNotificationSettings
- Defines the Comment notify user settings.
Namespace
Drupal\comment_notifyCode
public function getSetting($uid, $setting) {
$settings = $this
->getSettings($uid);
if (!$settings) {
$settings = $this
->getDefaultSettings();
}
return $settings[$setting];
}