You are here

public function Some::summaryTitle in Views (for Drupal 7) 8.3

Return a string to display as the clickable title for the pager plugin.

Overrides PagerPluginBase::summaryTitle

File

lib/Drupal/views/Plugin/views/pager/Some.php, line 27
Definition of Drupal\views\Plugin\views\pager\Some.

Class

Some
Plugin for views without pagers.

Namespace

Drupal\views\Plugin\views\pager

Code

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