Model/ResourceModel/Contact.php
public function setContactSuppressedForContactIds($suppressedContactIds)
    {
        if (empty($suppressedContactIds)) {
            return 0;
        }
        $conn = $this->getConnection();
        //update suppressed for contacts
        $updated = $conn->update(
            $this->getMainTable(),
            ['suppressed' => 1],
            ['email_contact_id IN(?)' => $suppressedContactIds]
        );

        return $updated;
    }
public function setContactSuppressedForContactIds($suppressedContactIds)
    {
        if (empty($suppressedContactIds)) {
            return 0;
        }
        $conn = $this->getConnection();
        //update suppressed for contacts
        $updated = $conn->update(
            $this->getMainTable(),
            ['suppressed' => 1],
            ['email_contact_id IN(?)' => $suppressedContactIds]
        );

        return $updated;
    }
public function setContactSuppressedForContactIds ( $ suppressedContactIds ) { if ( empty ( $ suppressedContactIds ) ) { return 0 ; } $ conn = $ this -> getConnection ( ) ; //update suppressed for contacts $ updated = $ conn -> update ( $ this -> getMainTable ( ) , [ 'suppressed' => 1 ] , [ 'email_contact_id IN(?)' => $ suppressedContactIds ] ) ; return $ updated ; }
Set suppressed for contact ids.

@param array $suppressedContactIds

@return int
Set suppressed for contact ids .