yii\base\InlineAction::runWithParams PHP Method

runWithParams() public method

This method is mainly invoked by the controller.
public runWithParams ( array $params ) : mixed
$params array action parameters
return mixed the result of the action
    public function runWithParams($params)
    {
        $args = $this->controller->bindActionParams($this, $params);
        Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
        if (Yii::$app->requestedParams === null) {
            Yii::$app->requestedParams = $args;
        }
        return call_user_func_array([$this->controller, $this->actionMethod], $args);
    }