function views_test_data_views_post_render
Same name in other branches
- 9 core/modules/views/tests/modules/views_test_data/views_test_data.views_execution.inc \views_test_data_views_post_render()
- 8.9.x core/modules/views/tests/modules/views_test_data/views_test_data.views_execution.inc \views_test_data_views_post_render()
- 11.x core/modules/views/tests/modules/views_test_data/views_test_data.views_execution.inc \views_test_data_views_post_render()
Implements hook_views_post_render().
File
-
core/
modules/ views/ tests/ modules/ views_test_data/ views_test_data.views_execution.inc, line 67
Code
function views_test_data_views_post_render(ViewExecutable $view, &$output, CachePluginBase $cache) {
\Drupal::state()->set('views_hook_test_views_post_render', TRUE);
if ($view->storage
->id() === 'test_page_display' && $view->current_display === 'empty_row') {
for ($i = 0; $i < 5; $i++) {
$output['#rows'][0]['#rows'][] = [];
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.