We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 725846f commit e23bb1dCopy full SHA for e23bb1d
1 file changed
Service/DataGridService.php
@@ -31,6 +31,16 @@ class DataGridService
31
* @var RequestStack
32
*/
33
private $requestStack;
34
+
35
+ protected $extraData = [];
36
37
+ /**
38
+ * @param mixed $extraData
39
+ */
40
+ public function setExtraData($extraData)
41
+ {
42
+ $this->extraData = $extraData;
43
+ }
44
45
/**
46
* DataGridService constructor.
@@ -110,10 +120,10 @@ public function render()
110
120
{
111
121
$this->addFiltersToQb();
112
122
$this->doCallbacks();
113
- return $this->twig->render('BBITDataGridBundle:Default:grid.html.twig', [
123
+ return $this->twig->render('BBITDataGridBundle:Default:grid.html.twig', array_merge([
114
124
'fields' => $this->fields,
115
125
'data' => $this->pagedData
116
- ]
126
+ ], $this->extraData)
117
127
118
128
);
119
129
}
0 commit comments