src/Controller/Component/ProcessComponent.php
protected function _process($action, Data $messages, array $redirect, array $ids)
    {
        $count = count($ids);
        $defaultMsg = __dn(
            'core',
            'One record success processed',
            '{0} records processed',
            $count,
            sprintf('<strong>%s</strong>', $count)
        );

        EventManager::trigger($this->_getEventName($action, self::EVENT_NAME_AFTER), $this->_controller, [
            'ids' => $ids
        ]);

        $this->Flash->success($messages->get($action, $defaultMsg));
        return $this->_controller->redirect($redirect);
    }
protected function _process($action, Data $messages, array $redirect, array $ids)
    {
        $count = count($ids);
        $defaultMsg = __dn(
            'core',
            'One record success processed',
            '{0} records processed',
            $count,
            sprintf('<strong>%s</strong>', $count)
        );

        EventManager::trigger($this->_getEventName($action, self::EVENT_NAME_AFTER), $this->_controller, [
            'ids' => $ids
        ]);

        $this->Flash->success($messages->get($action, $defaultMsg));
        return $this->_controller->redirect($redirect);
    }
protected function _process ( $ action , Data $ messages , array $ redirect , array $ ids ) { $ count = count ( $ ids ) ; $ defaultMsg = __dn ( 'core' , 'One record success processed' , '{0} records processed' , $ count , sprintf ( '<strong>%s</strong>' , $ count ) ) ; EventManager :: trigger ( $ this -> _getEventName ( $ action , self :: EVENT_NAME_AFTER ) , $ this -> _controller , [ 'ids' => $ ids ] ) ; $ this -> Flash -> success ( $ messages -> get ( $ action , $ defaultMsg ) ) ; return $ this -> _controller -> redirect ( $ redirect ) ; }
Controller process.

@param   string $action
@param   Data $messages
@param   array $redirect
@param   array $ids
@return  \Cake\Http\Response|null

@throws  \Aura\Intl\Exception
Controller process .