You are here

public function PagererStyleBase::setPager in Pagerer 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/pagerer/PagererStyleBase.php \Drupal\pagerer\Plugin\pagerer\PagererStyleBase::setPager()

Sets the Pagerer pager to be rendered.

Parameters

\Drupal\pagerer\Pagerer $pager: The pager object.

Return value

\Drupal\pagerer\Plugin\PagererStyleInterface The pager style object.

Overrides PagererStyleInterface::setPager

File

src/Plugin/pagerer/PagererStyleBase.php, line 104

Class

PagererStyleBase
Base plugin for Pagerer.

Namespace

Drupal\pagerer\Plugin\pagerer

Code

public function setPager(Pagerer $pager) {
  $this->pager = $pager;
  return $this;
}