function _views_drush_view_is_disabled

8.0.x views.d8.drush.inc _views_drush_view_is_disabled(View $view)
7.x views.d8.drush.inc _views_drush_view_is_disabled(View $view)

Returns whether a view is disabled.

Parameters

Drupal\views\Entity\View $view: The view object to check.

Return value

bool TRUE if the View is disabled, FALSE otherwise.

1 string reference to '_views_drush_view_is_disabled'
_views_drush_op_types in commands/core/views.d8.drush.inc
Returns an array of op types that can be performed on views.

File

commands/core/views.d8.drush.inc, line 451
Drush integration for views.

Code

function _views_drush_view_is_disabled(View $view) {
  return !$view->status();
}