| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function actions() |
||
| 14 | { |
||
| 15 | return array_merge(parent::actions(), [ |
||
| 16 | 'search' => [ |
||
| 17 | 'class' => ComboSearchAction::class, |
||
| 18 | 'on beforePerform' => function (Event $event) { |
||
| 19 | /** @var SearchAction $action */ |
||
| 20 | $action = $event->sender; |
||
| 21 | $dataProvider = $action->getDataProvider(); |
||
| 22 | $dataProvider->query->andWhere(['hide_default' => true]); |
||
| 23 | }, |
||
| 28 |