File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,13 @@ public function implementedEvents()
49
49
*/
50
50
public function beforeRender (Event $ event )
51
51
{
52
+ $ subject = $ event ->subject ();
53
+
52
54
if (!$ this ->isPaginatedApiRequest ()) {
53
55
return ;
54
56
}
55
57
56
- $ this ->pagingInfo = $ this ->request ->params ['paging ' ][$ event -> subject () ->name ];
58
+ $ this ->pagingInfo = $ this ->request ->params ['paging ' ][$ subject ->name ];
57
59
$ config = $ this ->config ();
58
60
59
61
if (!empty ($ config ['aliases ' ])) {
@@ -64,8 +66,8 @@ public function beforeRender(Event $event)
64
66
$ this ->setVisibility ();
65
67
}
66
68
67
- $ event -> subject () ->set ($ config ['key ' ], $ this ->pagingInfo );
68
- $ event -> subject () ->viewVars ['_serialize ' ][] = $ config ['key ' ];
69
+ $ subject ->set ($ config ['key ' ], $ this ->pagingInfo );
70
+ $ subject ->viewVars ['_serialize ' ][] = $ config ['key ' ];
69
71
}
70
72
71
73
/**
You can’t perform that action at this time.
0 commit comments