You are here

public function EntityPager::getLinks in Entity Pager 8

Same name and namespace in other branches
  1. 2.0.x 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 67

Class

EntityPager
Entity pager object.

Namespace

Drupal\entity_pager

Code

public function getLinks() {
  return [
    'prev' => $this
      ->getLink('link_prev', -1),
    'all' => $this
      ->getAllLink(),
    'next' => $this
      ->getLink('link_next', 1),
    'count' => $this
      ->getCount(),
  ];
}