src/apis/CommonController.php
public function actionDataModules()
    {
        $data = [];
        foreach (Yii::$app->getFrontendModules() as $k => $f) {
            $data[] = ['value' => $k, 'label' => $k];
        }
        return $data;
    }
public function actionDataModules()
    {
        $data = [];
        foreach (Yii::$app->getFrontendModules() as $k => $f) {
            $data[] = ['value' => $k, 'label' => $k];
        }
        return $data;
    }
public function actionDataModules ( ) { $ data = [ ] ; foreach ( Yii :: $ app -> getFrontendModules ( ) as $ k => $ f ) { $ data [ ] = [ 'value' => $ k , 'label' => $ k ] ; } return $ data ; }
Get a list with all frontend modules, which is used in several dropdowns in the admin ui.

@return array An array with all frontend modules.
Get a list with all frontend modules which is used in several dropdowns in the admin ui .