Quantcast
Viewing all articles
Browse latest Browse all 293221

Views pager missing view reference

Problem/Motivation

Using any theming functions for pagers (hook_preprocess_HOOK, hook_theme_suggestions_HOOK_alter) is almost impossible because the pager does not have a reference to the view it is attached to so a preprocess for a specific pager of a specific view it not possible to implement. Same behavior with additional theme suggestions, suggestions based on view name/display/parameters could not be implemented.

This happens because render functions for both Full and Mini pager are not sending the view object to the theme functions they use.
See screenshot.
Image may be NSFW.
Clik here to view.

Proposed resolution

Pass the view object to theme functions so it can be used by other hooks.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.


Viewing all articles
Browse latest Browse all 293221

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>