protected function resetPagination(DataProvider $provider)
{
if (version_compare(Application::VERSION, '5.0.0', '<')) {
$provider->getPaginationFactory()->setPageName('page_unused');
} else {
Paginator::currentPageResolver(function () {
return 1;
});
}
$provider->setPageSize($this->getRowsLimit());
$provider->setCurrentPage(1);
}