public function Some::summaryTitle

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

Overrides PagerPluginBase::summaryTitle

File

drupal/core/modules/views/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'],
  ));
}