function views_get_disabled_views

Returns an array of all disabled views, as fully loaded $view objects.

1 call to views_get_disabled_views()
ModuleTest::testLoadFunctions in drupal/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php
Tests the load wrapper/helper functions.

File

drupal/core/modules/views/views.module, line 1029
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_get_disabled_views() {
  $query = Drupal::entityQuery('view')
    ->condition('status', FALSE)
    ->execute();
  return entity_load_multiple('view', $query);
}