You are here

public function DisplayPluginBase::getPagerText in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getPagerText()

Provides help text for pagers.

Return value

array Returns an array which contains text for the items_per_page form element:

  • items per page title: The title text for the items_per_page form element.
  • items per page description: The description text for the items_per_page form element.

Overrides DisplayPluginInterface::getPagerText

1 method overrides DisplayPluginBase::getPagerText()
Page::getPagerText in core/modules/views/src/Plugin/views/display/Page.php
Provides help text for pagers.

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 2652

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function getPagerText() {
  return [
    'items per page title' => $this
      ->t('Items to display'),
    'items per page description' => $this
      ->t('Enter 0 for no limit.'),
  ];
}