Displaying view programmatically in Drupal 8

//display four related news and events view - send contextual filter
$view = \Drupal\views\Views::getView('news_and_events');
$variables['frne'] = $view->buildRenderable('frne');

Leave a comment

Your email address will not be published. Required fields are marked *