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

getModuleProposal() private method

Get an array with all modules where you can generate blocks for.
private getModuleProposal ( ) : array
return array
    private function getModuleProposal()
    {
        $moduleNames = [];
        foreach (Yii::$app->getApplicationModules() as $id => $obj) {
            $moduleNames[$id] = $id;
        }
        return $moduleNames;
    }