You are here

public function EntityPagerLink::__construct in Entity Pager 8

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

Constructs an EntityPagerLink.

Parameters

string $text: The text of the link.

\Drupal\Core\Entity\EntityInterface|null $entity: The result row in the view to link to.

File

src/EntityPagerLink.php, line 38

Class

EntityPagerLink
A class representing a single Entity Pager link.

Namespace

Drupal\entity_pager

Code

public function __construct($text, EntityInterface $entity = NULL) {
  $this->text = $text;
  $this->entity = $entity;
}