|
@@ 67-69 (lines=3) @@
|
| 64 |
|
$view = $event->getView(); |
| 65 |
|
$data = $view->getData(); |
| 66 |
|
|
| 67 |
|
if (is_array($data) && isset($data['grid']) && $data['grid'] instanceof GridViewInterface) { |
| 68 |
|
$data = $data['grid']; |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
if ($data instanceof GridViewInterface) { |
| 72 |
|
$view->setData($data->getDataSource()); |
|
@@ 88-90 (lines=3) @@
|
| 85 |
|
$view = $event->getView(); |
| 86 |
|
$data = $grid = $view->getData(); |
| 87 |
|
|
| 88 |
|
if (is_array($data) && isset($data['grid']) && $data['grid'] instanceof GridViewInterface) { |
| 89 |
|
$grid = $data['grid']; |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
if (!$grid instanceof GridViewInterface) { |
| 93 |
|
return; |