public function ViewStorageController::load

Overrides Drupal\config\ConfigStorageController::load();

Overrides ConfigStorageController::load

File

drupal/core/modules/views/lib/Drupal/views/ViewStorageController.php, line 21
Definition of Drupal\views\ViewStorageController.

Class

ViewStorageController
Defines the storage controller class for View entities.

Namespace

Drupal\views

Code

public function load(array $ids = NULL) {
  $entities = parent::load($ids);

  // Only return views for enabled modules.
  return array_filter($entities, function ($entity) {
    if (module_exists($entity
      ->get('module'))) {
      return TRUE;
    }
    return FALSE;
  });
}