Cake\Controller\Controller::setAction PHP Метод

setAction() публичный Метод

Examples: setAction('another_action'); setAction('action_with_parameters', $parameter1);
public setAction ( string $action ) : mixed
$action string The new action to be 'redirected' to. Any other parameters passed to this method will be passed as parameters to the new action.
Результат mixed Returns the return value of the called action
    public function setAction($action)
    {
        $this->request->params['action'] = $action;
        $args = func_get_args();
        unset($args[0]);
        return call_user_func_array([&$this, $action], $args);
    }