diff --git a/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsBlock.php b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsBlock.php index 1bb7cfe..bd8a431 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsBlock.php +++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsBlock.php @@ -41,7 +41,7 @@ public function getDerivativeDefinitions(array $base_plugin_definition) { // Check all Views for block displays. foreach (views_get_all_views() as $view) { // Do not return results for disabled views. - if (!$view->isEnabled()) { + if (!$view->status()) { continue; } $executable = $view->get('executable'); diff --git a/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsExposedFilterBlock.php b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsExposedFilterBlock.php index c537184..59e40ba 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsExposedFilterBlock.php +++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsExposedFilterBlock.php @@ -41,7 +41,7 @@ public function getDerivativeDefinitions(array $base_plugin_definition) { // Check all Views for displays with an exposed filter block. foreach (views_get_all_views() as $view) { // Do not return results for disabled views. - if (!$view->isEnabled()) { + if (!$view->status()) { continue; } $executable = $view->get('executable');