@@ 69-80 (lines=12) @@ | ||
66 | ], $gridConfig); |
|
67 | ||
68 | $columns = []; |
|
69 | foreach ($gridConfig['columns'] as $columnName => $columnConfig) { |
|
70 | $columnConfig = $this->resolveConfig([ |
|
71 | 'type' => null, |
|
72 | 'options' => [], |
|
73 | ], $columnConfig); |
|
74 | ||
75 | $columns[$columnName] = new ColumnMetadata( |
|
76 | $columnName, |
|
77 | $columnConfig['type'], |
|
78 | $columnConfig['options'] |
|
79 | ); |
|
80 | } |
|
81 | ||
82 | $filters = []; |
|
83 | foreach ($gridConfig['filters'] as $filterName => $filterConfig) { |
|
@@ 99-110 (lines=12) @@ | ||
96 | } |
|
97 | ||
98 | $actions = []; |
|
99 | foreach ($gridConfig['actions'] as $actionName => $actionConfig) { |
|
100 | $actionConfig = $this->resolveConfig([ |
|
101 | 'type' => null, |
|
102 | 'options' => [], |
|
103 | ], $actionConfig); |
|
104 | ||
105 | $actions[$actionName] = new ActionMetadata( |
|
106 | $actionName, |
|
107 | $actionConfig['type'], |
|
108 | $actionConfig['options'] |
|
109 | ); |
|
110 | } |
|
111 | ||
112 | $grids[$gridName] = new GridMetadata( |
|
113 | $gridName, |