Loads a view from configuration.
string $name: The name of the view.
Drupal\views\ViewExecutable A reference to the $view object.
function views_get_view($name) {
$view = entity_load('view', $name);
if ($view) {
return $view
->get('executable');
}
}