src/Service/MelisCoreGdprService.php
public function deleteSelected($idsToBeDeletedArray = [])
    {
        // Create selected index for the array
        $arrayParameters['selected'] = $idsToBeDeletedArray;

        // Sending service start event
        $arrayParameters = $this->sendEvent('melis_core_gdpr_user_delete_event', $arrayParameters);

        // Sending service end event
        $arrayParameters = $this->sendEvent('melis_core_gdpr_user_delete_event_end', $arrayParameters);

        return $arrayParameters;
    }
public function deleteSelected($idsToBeDeletedArray = [])
    {
        // Create selected index for the array
        $arrayParameters['selected'] = $idsToBeDeletedArray;

        // Sending service start event
        $arrayParameters = $this->sendEvent('melis_core_gdpr_user_delete_event', $arrayParameters);

        // Sending service end event
        $arrayParameters = $this->sendEvent('melis_core_gdpr_user_delete_event_end', $arrayParameters);

        return $arrayParameters;
    }
public function deleteSelected ( $ idsToBeDeletedArray = [ ] ) { // Create selected index for the array $ arrayParameters [ 'selected' ] = $ idsToBeDeletedArray ; // Sending service start event $ arrayParameters = $ this -> sendEvent ( 'melis_core_gdpr_user_delete_event' , $ arrayParameters ) ; // Sending service end event $ arrayParameters = $ this -> sendEvent ( 'melis_core_gdpr_user_delete_event_end' , $ arrayParameters ) ; return $ arrayParameters ; }
This function will delete all ids passed and

This event will take in the IDs of the selected items on the table as the parameters so please follow this structure.
Parameter for the event value structure:

array(
'selected' => array(
'MelisCmsProspects'  => array(13,15),
'MelisCmsNewsletter' => 'array(2),
),
)
*
The modules that will catch the event will then return an acknowledgement message if the items are succesfully deleted.
Return value structure:

array(
'results' => array(
'MelisCmsProspects'  => true,
'MelisCmsNewsletter' => true,
),
)

@param $arrayParameters
@return array
This function will delete all ids passed and