getSubjectModels() public static method

Get the type-to-subject-model map.
public static getSubjectModels ( ) : array
return array
Ejemplo n.º 1
0
 /**
  * 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']);
 }