Skip to content
Snippets Groups Projects

Issue #3183766 by guilhermevp, alecsmrekar, paulocs, djsagar, Abhijith S,...

Open Issue #3183766 by guilhermevp, alecsmrekar, paulocs, djsagar, Abhijith S,...
6 unresolved threads
Open Binoli Lalani requested to merge issue/drupal-3183766:3183766-views-pager-- into 11.x
6 unresolved threads
Files
5
@@ -69,10 +69,22 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
* {@inheritdoc}
*/
public function summaryTitle() {
if (!empty($this->options['offset'])) {
return $this->formatPlural($this->options['items_per_page'], '@count item, skip @skip', 'Paged, @count items, skip @skip', ['@count' => $this->options['items_per_page'], '@skip' => $this->options['offset']]);
if ($this->options['items_per_page'] == 0) {
if (!empty($this->options['offset'])) {
return $this->t('All items except first @skip', ['@skip' => $this->options['offset']]);
}
else {
return $this->t('All items');
}
}
else {
if (!empty($this->options['offset'])) {
return $this->formatPlural($this->options['items_per_page'], '@count item, skip @skip', '@count items, skip @skip', ['@count' => $this->options['items_per_page'], '@skip' => $this->options['offset']]);
}
else {
return $this->formatPlural($this->options['items_per_page'], '@count item', '@count items', ['@count' => $this->options['items_per_page']]);
}
}
return $this->formatPlural($this->options['items_per_page'], '@count item', 'Paged, @count items', ['@count' => $this->options['items_per_page']]);
}
/**
Loading