get_sorted_notifications();
}
/**
* Check if the user has dismissed a notification. (wrapper function)
*
* @codeCoverageIgnore
*
* @param Yoast_Notification $notification The notification to check for dismissal.
* @param int|null $user_id User ID to check on.
*
* @return bool
*/
private function is_notification_dismissed( Yoast_Notification $notification, $user_id = null ) {
return Yoast_Notification_Center::is_notification_dismissed( $notification, $user_id );
}
/**
* Parses all the notifications to an array with just id, message, nonce, type and dismissed.
*
* @return array