Views::getAllViews

public static Views::getAllViews()

Returns an array of all views as fully loaded $view objects.

Return value

\Drupal\views\Entity\View[] An array of loaded view entities.

File

core/modules/views/src/Views.php, line 244

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

public static function getAllViews() {
  return \Drupal::entityManager()->getStorage('view')->loadMultiple();
}
doc_Drupal
2016-10-29 09:54:48
Comments
Leave a Comment

Please login to continue.