MODULE_NAME_views_pre_view()
function MODULE_NAME_views_pre_view(ViewExecutable $view, $display_id, array &$args) { if ($view->id() == 'TARGET_VIEW_ID' && $display_id == 'TARGET_DISPLAY_ID') { $filters = $view->getDisplay()->getOption('filters'); $filters['TARGET_FIELD_NAME']['value'] = [VALUE]; $view->display_handler->overrideOption('filters', $filters); } }