Get the type-to-subject-model map.
public static getSubjectModels ( ) : array | ||
return | array |
/** * Get the notification types that should be alerted to this user, according * to their preferences. * * @return array */ public function getAlertableNotificationTypes() { $types = array_keys(Notification::getSubjectModels()); return array_filter($types, [$this, 'shouldAlert']); }