How to provide a contextual filter with an OR conjunction to a view?
I guess you need to use hook_views_query_alter and then you could add your OR condition.

function hook_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
  if ($view-&gt;id() == 'machine_name_of_your_view' ) {
   //$query-&gt;where contains the filter conditions 
   //i.e. 'Where' part of the query where you could add yours.
   var_dump($query-&gt;where);die;
  }
}


more from drupal.org