Unverified Commit fb4c658d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3087486 by AkashkumarOSL, kim.pepper, catch: Update docs in PagerManagerInterface

parent 98daa599
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -43,8 +43,7 @@ interface PagerManagerInterface {
   * that invokes an external datastore with an SQL-like syntax:
   * @code
   *   // First find the total number of items and initialize the pager.
   *   $where = "status = 1";
   *   $total = mymodule_select("SELECT COUNT(*) FROM data " . $where)->result();
   *   $total = mymodule_select("SELECT COUNT(*) FROM data WHERE status = 1")->result();
   *   $num_per_page = \Drupal::config('mymodule.settings')->get('num_per_page');
   *   $pager = \Drupal::service('pager.manager')->createPager($total, $num_per_page);
   *   $page = $pager->getCurrentPage();