| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function beforeAction($action) |
||
| 31 | { |
||
| 32 | $this->view->mainMenuConfig = require __DIR__ . '/../config/admin/main-menu.php'; |
||
| 33 | |||
| 34 | $this->view->profileLink = '/admin/users/view?id='.Yii::$app->getUser()->id; |
||
| 35 | |||
| 36 | $this->urlPrefix = '/' . $this->module->id . '/' . $action->controller->id . '/'; |
||
|
|
|||
| 37 | |||
| 38 | if (array_key_exists($action->controller->id, $this->neighborControllers)) { |
||
| 39 | $this->urlPrefixNeighbor = '/' . $this->module->id . '/' . $this->neighborControllers[$action->controller->id] . '/'; |
||
| 40 | } |
||
| 41 | |||
| 42 | return parent::beforeAction($action); |
||
| 43 | } |
||
| 44 | } |