yii\console\controllers\BaseMigrateController::generateMigrationSourceCode PHP Method

generateMigrationSourceCode() protected method

Child class may override this method, adding extra logic or variation to the process.
Since: 2.0.8
protected generateMigrationSourceCode ( array $params ) : string
$params array generation parameters, usually following parameters are present: - name: string migration base name - className: string migration class name
return string generated PHP code.
    protected function generateMigrationSourceCode($params)
    {
        return $this->renderFile(Yii::getAlias($this->templateFile), $params);
    }