hook_views_post_build

function hook_views_post_build

hook_views_post_build(ViewExecutable $view)

Act on the view immediately after the query is built.

Output can be added to the view by setting $view->attachment_before and $view->attachment_after.

Parameters

\Drupal\views\ViewExecutable $view: The view object about to be processed.

See also

\Drupal\views\ViewExecutable