hook_views_pre_execute
function hook_views_pre_execute
hook_views_pre_execute(ViewExecutable $view)
Act on the view after the query is built and just before it is executed.
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.