| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | } |
||
| 53 | |||
| 54 | if (is_string($action)) { |
||
| 55 | $tmp = explode(':', $action); |
||
| 56 | |||
| 57 | $action = [ |
||
| 58 | 'class' => array_shift($tmp), |
||
| 59 | 'args' => $tmp, |
||
| 60 | ]; |
||
| 61 | } |
||
| 62 | |||
| 63 | $className = GridViewHelper::resolveAlias('action', $action['class']); |
||
| 64 | $action = new $className(...$action['args']); |
||
| 65 | } |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | protected function configTests(): array |
||
| 72 | { |
||
| 73 | return array_merge(parent::configTests(), [ |
||
| 74 | 'value' => 'array', |
||
| 92 | } |