/** * Convert Notification to array representation * * @param Yoast_Notification $notification Notification to convert. * * @since 3.2 * * @return array */ private function notification_to_array(Yoast_Notification $notification) { return $notification->to_array(); }
/** * Filter notifications that should not be displayed for the current user * * @param Yoast_Notification $notification Notification to test. * * @return bool */ private function filter_notification_current_user(Yoast_Notification $notification) { return $notification->display_for_current_user(); }
/** * Filter out any non-warnings * * @param Yoast_Notification $notification Notification to test. * * @return bool */ private static function filter_warning_alerts(Yoast_Notification $notification) { return $notification->get_type() !== 'error'; }