hook_views_pre_build

function hook_views_pre_build

hook_views_pre_build(ViewExecutable $view)

Act on the view before the query is built, but after displays are attached.

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\Vie