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

loadGenerator() защищенный Метод

Loads the generator with the specified ID.
protected loadGenerator ( string $id ) : yii\gii\Generator
$id string the ID of the generator to be loaded.
Результат yii\gii\Generator the loaded generator
    protected function loadGenerator($id)
    {
        if (isset($this->module->generators[$id])) {
            $this->generator = $this->module->generators[$id];
            $this->generator->loadStickyAttributes();
            $this->generator->load(Yii::$app->request->post());
            return $this->generator;
        } else {
            throw new NotFoundHttpException("Code generator not found: {$id}");
        }
    }