template_preprocess_pager use two global: $pager_page_array and $pager_total.

Can we remove those global? I was making a theme for D8 and having to manipulate global variable on a processors was feeling kind of strange.

Comments

gagarine’s picture

Title: Remove global template_preprocess_pager » Remove globals on template_preprocess_pager
gagarine’s picture

mondrake’s picture

Status: Active » Closed (duplicate)

Latest patches in #2044435: Convert pager.inc to a service remove globals from both template_preprocess_pager() and template_preprocess_views_mini_pager(). Closing this as a duplicate.