hook_views_pre_view
function hook_views_pre_view
hook_views_pre_view(ViewExecutable $view, $display_id, array &$args)
Alter a view at the very beginning of Views processing.
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.
string $display_id: The machine name of the active display.
array $args: An array of arguments passed into the view.