We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a2d786 commit a875719Copy full SHA for a875719
src/Controller/Component/ApiPaginationComponent.php
@@ -57,9 +57,9 @@ public function beforeRender(Event $event)
57
}
58
59
$subject->set($config['key'], $this->pagingInfo);
60
- $data = $subject->viewBuilder()->getVar('_serialize') ?? [];
+ $data = $subject->viewBuilder()->getOption('serialize') ?? [];
61
$data[] = $config['key'];
62
- $subject->set('_serialize', $data);
+ $subject->viewBuilder()->setOption('serialize', $data);
63
64
65
/**
0 commit comments