public function updateBadges($badges)
    {
        if ($this->owner->SecurityAlerts()->exists()) {
            $badges->push(ArrayData::create([
                'Title' => _t(__CLASS__ . '.BADGE_SECURITY', 'RISK: Security'),
                'Type' => 'warning security-alerts__toggler',
            ]));
        }
    }
public function updateBadges($badges)
    {
        if ($this->owner->SecurityAlerts()->exists()) {
            $badges->push(ArrayData::create([
                'Title' => _t(__CLASS__ . '.BADGE_SECURITY', 'RISK: Security'),
                'Type' => 'warning security-alerts__toggler',
            ]));
        }
    }
public function updateBadges ( $ badges ) { if ( $ this -> owner -> SecurityAlerts ( ) -> exists ( ) ) { $ badges -> push ( ArrayData :: create ( [ 'Title' => _t ( __CLASS__ . '.BADGE_SECURITY' , 'RISK: Security' ) , 'Type' => 'warning security-alerts__toggler' , ] ) ) ; } }
updates the badges that render as part of the screen targeted
summary for this Package

@param ArrayList $badges
updates the badges that render as part of the screen targeted summary for this Package