Returns whether the view is enabled.
Drupal\views\Plugin\Core\Entity\View $view: The view object to check.
bool Returns TRUE if a view is enabled, FALSE otherwise.
function views_view_is_enabled(View $view) { return $view ->status(); }