On Drupal 8:
I have a pagination for list of articles within a Drupal site e.g.:
<<first <previous ... 3 4 5 6 7 8 9 10 11 ... next> last>>
So at the moment there are always nine page links shown. Basically I want to find out how to modify this so there are (for example) only five links and the text for labels for the controls in the pager like this:
<< < ... 6 7 8 9 10 ... > >>
I wrote this code with not result:
/** * Implements template_preprocess_pager(). */ function MYTHEME_preprocess_pager(&$variables) { $variables['quantity'] = 5; $variables['tags'] = ["«", "‹", "›", "»"]; }