function Mini::summaryTitle

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/pager/Mini.php \Drupal\views\Plugin\views\pager\Mini::summaryTitle()
  2. 10 core/modules/views/src/Plugin/views/pager/Mini.php \Drupal\views\Plugin\views\pager\Mini::summaryTitle()
  3. 11.x core/modules/views/src/Plugin/views/pager/Mini.php \Drupal\views\Plugin\views\pager\Mini::summaryTitle()

Overrides PagerPluginBase::summaryTitle

File

core/modules/views/src/Plugin/views/pager/Mini.php, line 37

Class

Mini
The plugin to handle mini pager.

Namespace

Drupal\views\Plugin\views\pager

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.