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.
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
Comment #1
gagarine commentedComment #2
gagarine commentedComment #3
mondrakeLatest patches in #2044435: Convert pager.inc to a service remove globals from both
template_preprocess_pager()andtemplate_preprocess_views_mini_pager(). Closing this as a duplicate.