| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function actions() |
||
| 33 | { |
||
| 34 | return [ |
||
| 35 | 'view' => [ |
||
| 36 | 'class' => IndexAction::class, |
||
| 37 | 'on beforePerform' => function (Event $event) { |
||
| 38 | /** @var \hipanel\actions\SearchAction $action */ |
||
| 39 | $action = $event->sender; |
||
| 40 | $dataProvider = $action->getDataProvider(); |
||
| 41 | $dataProvider->query->joinWith('images'); |
||
| 42 | $dataProvider->query->joinWith('server'); |
||
| 43 | $dataProvider->pagination = false; |
||
| 44 | }, |
||
| 45 | 'collection' => [ |
||
| 46 | 'formName' => '', |
||
| 47 | ], |
||
| 52 |