Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299325

hook_views_post_render fails in a theme

$
0
0

Problem/Motivation

According to views.api documentation the use of hook_views_post_render is:

function hook_views_post_render(ViewExecutable $view, &$output, CacheBackendInterface $cache) {

In a module, this works as designed, but when this hook is used in a theme. the $output and $cache variables are NULL.

Proposed resolution

Fix it, test it.

Remaining tasks

Requires a test

User interface changes

none

API changes

none


Viewing all articles
Browse latest Browse all 299325

Latest Images

Trending Articles



Latest Images

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