function views_test_config_views_post_render
Same name in other branches
- 9 core/modules/views/tests/modules/views_test_config/views_test_config.module \views_test_config_views_post_render()
- 10 core/modules/views/tests/modules/views_test_config/views_test_config.module \views_test_config_views_post_render()
Implements hook_views_post_render().
File
-
core/
modules/ views/ tests/ modules/ views_test_config/ views_test_config.module, line 29
Code
function views_test_config_views_post_render(ViewExecutable $view, &$output, CachePluginBase $cache) {
if (\Drupal::state()->get('views_test_config.views_post_render_cache_tag')) {
\Drupal::state()->set('views_test_config.views_post_render_called', TRUE);
// Set a cache key on output to ensure ViewsSelection::stripAdminAndAnchorTagsFromResults
// correctly handles elements that aren't result rows.
$output['#cache']['tags'][] = 'foo';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.