views_view_is_enabled

views_view_is_enabled(View $view)

Returns whether the view is enabled.

Parameters

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

Return value

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

File

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

Code

function views_view_is_enabled(View $view) {
  return $view->status();
}
doc_Drupal
2016-10-29 09:55:45
Comments
Leave a Comment

Please login to continue.