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