You are here

public function Some::summaryTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/pager/Some.php \Drupal\views\Plugin\views\pager\Some::summaryTitle()

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

Overrides PagerPluginBase::summaryTitle

File

core/modules/views/src/Plugin/views/pager/Some.php, line 26
Contains \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 $this
      ->formatPlural($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 $this
    ->formatPlural($this->options['items_per_page'], '@count item', '@count items', array(
    '@count' => $this->options['items_per_page'],
  ));
}