You are here

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

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

Overrides Full::summaryTitle

File

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

Class

Mini
The plugin to handle mini pager.

Namespace

Drupal\views\Plugin\views\pager

Code

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