public function PagererParameters::findAdaptiveKeys in Pagerer 8.2
Returns the current adaptive keys for a pager element.
Parameters
int $pager_id: (optional) An integer to distinguish between multiple pagers on one page.
Return value
array The adaptive keys array, in the format 'L,R,X', where L is the adaptive lock to left page, R is the adaptive lock to right page, and X is the adaptive center lock for calculation of neighborhood.
File
- src/
PagererParameters.php, line 233
Class
- PagererParameters
- Provides extended pager information contained within the current request.
Namespace
Drupal\pagererCode
public function findAdaptiveKeys(int $pager_id = 0) : array {
return $this
->getPagererItem('ak')[$pager_id] ?? [];
}