public function actionDataMenu()
    {
        return [
            'items' => ArrayHelper::typeCast(MenuHelper::getItems()),
            'drafts' => ArrayHelper::typeCast(MenuHelper::getDrafts()),
            'containers' => ArrayHelper::typeCast(MenuHelper::getContainers()),
            'hiddenCats' => ArrayHelper::typeCast(Yii::$app->adminuser->identity->setting->get("togglecat", [])),
        ];
    }
public function actionDataMenu()
    {
        return [
            'items' => ArrayHelper::typeCast(MenuHelper::getItems()),
            'drafts' => ArrayHelper::typeCast(MenuHelper::getDrafts()),
            'containers' => ArrayHelper::typeCast(MenuHelper::getContainers()),
            'hiddenCats' => ArrayHelper::typeCast(Yii::$app->adminuser->identity->setting->get("togglecat", [])),
        ];
    }
public function actionDataMenu ( ) { return [ 'items' => ArrayHelper :: typeCast ( MenuHelper :: getItems ( ) ) , 'drafts' => ArrayHelper :: typeCast ( MenuHelper :: getDrafts ( ) ) , 'containers' => ArrayHelper :: typeCast ( MenuHelper :: getContainers ( ) ) , 'hiddenCats' => ArrayHelper :: typeCast ( Yii :: $ app -> adminuser -> identity -> setting -> get ( "togglecat" , [ ] ) ) , ] ; }
Returns an array with all data for the admin menu.

+ items
+ drafts
+ containers
+ hiddenCats

@return array
Returns an array with all data for the admin menu .