function views_view_is_disabled

views_view_is_disabled(View $view)

Returns whether the view is disabled.

Parameters

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

Return value

bool Returns TRUE if a view is disabled, FALSE otherwise.

File

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

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views!views.module/function/views_view_is_disabled/8.1.x