luya\console\commands\BlockController::getFileBasePath PHP Method

getFileBasePath() protected method

Get the full base path to the folder of the module
protected getFileBasePath ( ) : string
return string The full path to the module folder.
    protected function getFileBasePath()
    {
        if ($this->type == self::TYPE_APP) {
            return Yii::$app->basePath;
        }
        return Yii::$app->getModule($this->moduleName)->getBasePath();
    }