public static function Views::getAllViews in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/src/Views.php \Drupal\views\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.
3 calls to Views::getAllViews()
- CacheabilityMetadataUpdateTest::testUpdateHookN in core/
modules/ views/ src/ Tests/ Update/ CacheabilityMetadataUpdateTest.php - Tests that views cacheability metadata updated properly.
- GroupwiseMax::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ relationship/ GroupwiseMax.php - Provide a form to edit options for this plugin.
- ModuleTest::testLoadFunctions in core/
modules/ views/ src/ Tests/ ModuleTest.php - Tests the load wrapper/helper functions.
File
- core/
modules/ views/ src/ Views.php, line 249 - Contains \Drupal\views\Views.
Class
- Views
- Static service container wrapper for views.
Namespace
Drupal\viewsCode
public static function getAllViews() {
return \Drupal::entityManager()
->getStorage('view')
->loadMultiple();
}