function views_get_all_views

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

4 calls to views_get_all_views()
GroupwiseMax::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php
Extends the relationship's basic options, allowing the user to pick a sort and an order for it.
ModuleTest::testLoadFunctions in drupal/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php
Tests the load wrapper/helper functions.
ViewsBlock::getDerivativeDefinitions in drupal/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsBlock.php
Implements \Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinitions().
ViewsExposedFilterBlock::getDerivativeDefinitions in drupal/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsExposedFilterBlock.php
Implements \Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinitions().

File

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

Code

function views_get_all_views() {
  return Drupal::entityManager()
    ->getStorageController('view')
    ->load();
}