Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Views.php

function 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.

1 call to Views::getAllViews()
GroupwiseMax::buildOptionsForm in core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php
Provide a form to edit options for this plugin.

File

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

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

public static function getAllViews() {
    return \Drupal::entityTypeManager()->getStorage('view')
        ->loadMultiple();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal