You are here

protected function EntityPagerLink::noResult in Entity Pager 8

Same name and namespace in other branches
  1. 2.0.x src/EntityPagerLink.php \Drupal\entity_pager\EntityPagerLink::noResult()

Returns a render array for an entity pager link with no results.

Return value

array The render array for the link with no results.

1 call to EntityPagerLink::noResult()
EntityPagerLink::getLink in src/EntityPagerLink.php
Returns a render array for the link.

File

src/EntityPagerLink.php, line 70

Class

EntityPagerLink
A class representing a single Entity Pager link.

Namespace

Drupal\entity_pager

Code

protected function noResult() {
  return [
    '#type' => 'markup',
    '#markup' => '<span class="inactive">' . $this->text . '</span>',
  ];
}