public static function getAllNotificationsToDisplay()
    {
        $notifications = static::getAllNotifications();

        uasort($notifications, function ($n1, $n2) {
            /** @var Notification $n1 */ /** @var Notification $n2 */
            if ($n1->getPriority() == $n2->getPriority()) {
                return 0;
            }

            return $n1->getPriority() > $n2->getPriority() ? -1 : 1;
        });

        return $notifications;
    }
public static function getAllNotificationsToDisplay()
    {
        $notifications = static::getAllNotifications();

        uasort($notifications, function ($n1, $n2) {
            /** @var Notification $n1 */ /** @var Notification $n2 */
            if ($n1->getPriority() == $n2->getPriority()) {
                return 0;
            }

            return $n1->getPriority() > $n2->getPriority() ? -1 : 1;
        });

        return $notifications;
    }
public static function getAllNotificationsToDisplay ( ) { $ notifications = static :: getAllNotifications ( ) ; uasort ( $ notifications , function ( $ n1 , $ n2 ) { /** @var Notification $n1 */ /** @var Notification $n2 */ if ( $ n1 -> getPriority ( ) == $ n2 -> getPriority ( ) ) { return 0 ; } return $ n1 -> getPriority ( ) > $ n2 -> getPriority ( ) ? - 1 : 1 ; } ) ; return $ notifications ; }
Determine all notifications that needs to be displayed. They are sorted by priority. Highest priorities first.
@return \ArrayObject
Determine all notifications that needs to be displayed . They are sorted by priority . Highest priorities first .