yii\gii\controllers\DefaultController::actionAction PHP Метод

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

Given an action named "xyz", the method "actionXyz()" in the generator will be called. If the method does not exist, a 400 HTTP exception will be thrown.
public actionAction ( string $id, string $name ) : mixed
$id string the ID of the generator
$name string the action name
Результат mixed the result of the action.
    public function actionAction($id, $name)
    {
        $generator = $this->loadGenerator($id);
        $method = 'action' . $name;
        if (method_exists($generator, $method)) {
            return $generator->{$method}();
        } else {
            throw new NotFoundHttpException("Unknown generator action: {$name}");
        }
    }