/** * returns all the PAGE type specific informations. */ public function actionTypePageContainer($navItemId) { $navItem = NavItem::findOne($navItemId); $type = $navItem->getType(); $layout = \cmsadmin\models\Layout::findOne($type->layout_id); if (!empty($layout)) { $layout->json_config = json_decode($layout->json_config, true); } return ['layout' => $layout, 'type_container' => $type]; }