You are here

public function FacetapiAdapter::getPageLimit in Facet API 7

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::getPageLimit()
  2. 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::getPageLimit()

Returns the number of results per page.

Return value

int The number of results per page, or the limit.

File

plugins/facetapi/adapter.inc, line 573
Adapter plugin and adapter related classes.

Class

FacetapiAdapter
Abstract class extended by Facet API adapters.

Code

public function getPageLimit() {
  global $pager_limits;
  return isset($pager_limits[0]) ? $pager_limits[0] : 10;
}