Skip to content

Commit

Permalink
Remove SimplePager::haveToPaginate implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored and jordisala1991 committed May 2, 2021
1 parent ad79889 commit 495bcb8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Datagrid/SimplePager.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class SimplePager extends Pager
protected $results;

/**
* NEXT_MAJOR: Remove this property.
*
* @deprecated since sonata-project/admin-bundle 3.x
*
* @var bool
*/
protected $haveToPaginate;
Expand Down Expand Up @@ -142,11 +146,6 @@ public function getResults($hydrationMode = null)
return $this->results;
}

public function haveToPaginate()
{
return $this->haveToPaginate || $this->getPage() > 1;
}

/**
* {@inheritdoc}
*
Expand Down

0 comments on commit 495bcb8

Please sign in to comment.