You are here

protected function PagererStyleBase::getTag in Pagerer 8

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

Returns a translated textual element from the configuration.

Parameters

string $key: The tag key.

Return value

string A text tag string.

4 calls to PagererStyleBase::getTag()
PagererStyleBase::getDisplayTag in src/Plugin/pagerer/PagererStyleBase.php
Returns a translated textual element for pages/items/item ranges.
PagererStyleBase::prepareJsState in src/Plugin/pagerer/PagererStyleBase.php
Prepares input parameters for a JS enabled pager widget.
Scrollpane::buildPagerItems in src/Plugin/pagerer/Scrollpane.php
Return the pager render array.
Standard::buildPagerItems in src/Plugin/pagerer/Standard.php
Return the pager render array.

File

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

Class

PagererStyleBase
Base plugin for Pagerer.

Namespace

Drupal\pagerer\Plugin\pagerer

Code

protected function getTag($key) {
  return $this
    ->getOption('tags.' . $key);
}