Returns an array of all disabled views.
\Drupal\views\Entity\View[] An array of loaded disabled view entities.
public static function getDisabledViews() { $query = \Drupal::entityQuery('view')->condition('status', FALSE) ->execute(); return \Drupal::entityTypeManager()->getStorage('view') ->loadMultiple($query); }