| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function run() |
||
| 18 | { |
||
| 19 | \app\backend\assets\FrontendEditingAsset::register($this->view); |
||
| 20 | $items = [ |
||
| 21 | [ |
||
| 22 | 'label' => Icon::show('dashboard') . ' ' . \Yii::t('app', 'Backend'), |
||
| 23 | 'url' => ['/backend/'], |
||
| 24 | ] |
||
| 25 | ]; |
||
| 26 | |||
| 27 | $event = new BeforeRenderEvent(); |
||
| 28 | $event->items = $items; |
||
| 29 | $this->trigger(self::EVENT_BEFORE_RENDER, $event); |
||
| 30 | |||
| 31 | return $this->render( |
||
| 32 | $this->viewFile, |
||
| 33 | [ |
||
| 34 | 'items' => $event->items, |
||
| 35 | 'bottom' => $this->bottom |
||
| 36 | ] |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |