src/Action/Bulk/BaseAction.php
protected function _handle()
    {
        $ids = $this->_processIds();
        $subject = $this->_constructSubject($ids);

        $event = $this->_trigger('beforeBulk', $subject);
        if ($event->isStopped()) {
            return $this->_stopped($subject);
        }

        if ($this->_bulk($subject->query)) {
            $this->_success($subject);
        } else {
            $this->_error($subject);
        }

        return $this->_redirect($subject, ['action' => 'index']);
    }
protected function _handle()
    {
        $ids = $this->_processIds();
        $subject = $this->_constructSubject($ids);

        $event = $this->_trigger('beforeBulk', $subject);
        if ($event->isStopped()) {
            return $this->_stopped($subject);
        }

        if ($this->_bulk($subject->query)) {
            $this->_success($subject);
        } else {
            $this->_error($subject);
        }

        return $this->_redirect($subject, ['action' => 'index']);
    }
protected function _handle ( ) { $ ids = $ this -> _processIds ( ) ; $ subject = $ this -> _constructSubject ( $ ids ) ; $ event = $ this -> _trigger ( 'beforeBulk' , $ subject ) ; if ( $ event -> isStopped ( ) ) { return $ this -> _stopped ( $ subject ) ; } if ( $ this -> _bulk ( $ subject -> query ) ) { $ this -> _success ( $ subject ) ; } else { $ this -> _error ( $ subject ) ; } return $ this -> _redirect ( $ subject , [ 'action' => 'index' ] ) ; }
Handle a bulk event

@return \Cake\Http\Response
Handle a bulk event