How do I programmatically render a view with contextual filters in Drupal 8?
In Drupal 7, I generally use the following code.
$view = views_get_view('test_view'); //test_view is the view machine name
$view->set_display("block"); //block is the view display name
$view->set_arguments($tid); //$tid is the argument to pass
$view->pre_execute();
$view->execute();
$content = $view->render();
Is there any alternative way to achieve this in Drupal 8?