You are here

public function LoadMore::summaryTitle in Views Load More 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/pager/LoadMore.php \Drupal\views_load_more\Plugin\views\pager\LoadMore::summaryTitle()

Overrides \Drupal\views\Plugin\views\pager\Full::summaryTitle().

Overrides Full::summaryTitle

File

src/Plugin/views/pager/LoadMore.php, line 37

Class

LoadMore
The plugin to handle full pager.

Namespace

Drupal\views_load_more\Plugin\views\pager

Code

public function summaryTitle() {
  if (!empty($this->options['offset'])) {
    return $this
      ->formatPlural($this->options['items_per_page'], 'Load more pager, @count item, skip @skip', 'Load more pager, @count items, skip @skip', array(
      '@count' => $this->options['items_per_page'],
      '@skip' => $this->options['offset'],
    ));
  }
  return $this
    ->formatPlural($this->options['items_per_page'], 'Load more pager, @count item', 'Load more pager, @count items', array(
    '@count' => $this->options['items_per_page'],
  ));
}