public function EntityPager::getLinks in Entity Pager 2.0.x
Same name and namespace in other branches
- 8 src/EntityPager.php \Drupal\entity_pager\EntityPager::getLinks()
Gets an array of entity pager link render arrays.
Return value
array[] The link render arrays.
Overrides EntityPagerInterface::getLinks
File
- src/
EntityPager.php, line 65
Class
- EntityPager
- Entity pager object.
Namespace
Drupal\entity_pagerCode
public function getLinks() {
return [
'prev' => $this
->getLink('link_prev', -1),
'all' => $this
->getAllLink(),
'next' => $this
->getLink('link_next', 1),
'count' => $this
->getCount(),
];
}