function _views_drush_view_is_enabled

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

Returns whether a view is enabled.

Parameters

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

Return value

bool TRUE if the View is enabled, FALSE otherwise.

1 string reference to '_views_drush_view_is_enabled'
_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 438
Drush integration for views.

Code

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