My idea are instead of update the views name to the custom code one by one. I like to apply to same content type, but I don’t know the syntax.
function myModule_views_query_alter(&$view, &$query) if(($view->name == '?????????'){ }
I would get the node/content type “myArticle” for node table as following code
$content_type = $wrapper->type->value();
but how can I update $view->name to $views->node->type ? I try print_r the $view but not fully understand the syntax to access the field. Not sure if I went in the wrong direction. Please advise.