public function updateAlerts(&$alerts)
    {
        $securityWarnings = $this->owner->sourceRecords()->filter('SecurityAlerts.ID:GreaterThan', 0);

        if ($securityWarnings->exists()) {
            $alerts['SecurityAlerts'] = $securityWarnings->renderWith('SecurityAlertSummary');
        }
    }
public function updateAlerts(&$alerts)
    {
        $securityWarnings = $this->owner->sourceRecords()->filter('SecurityAlerts.ID:GreaterThan', 0);

        if ($securityWarnings->exists()) {
            $alerts['SecurityAlerts'] = $securityWarnings->renderWith('SecurityAlertSummary');
        }
    }
public function updateAlerts ( & $ alerts ) { $ securityWarnings = $ this -> owner -> sourceRecords ( ) -> filter ( 'SecurityAlerts.ID:GreaterThan' , 0 ) ; if ( $ securityWarnings -> exists ( ) ) { $ alerts [ 'SecurityAlerts' ] = $ securityWarnings -> renderWith ( 'SecurityAlertSummary' ) ; } }
Update the Package's screen bound summary info with little badges to indicate
security alerts are present for this package

@param array $alerts a list of alerts to display
Update the Package s screen bound summary info with little badges to indicate security alerts are present for this package