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

Breadcrumb

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

function ViewsData::getAll

Gets all table data.

Return value

array An array of table data.

1 call to ViewsData::getAll()
ViewsData::fetchBaseTables in core/modules/views/src/ViewsData.php
Fetches a list of all base tables available.

File

core/modules/views/src/ViewsData.php, line 105

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

public function getAll() {
    if (!$this->fullyLoaded) {
        $this->allStorage = $this->getData();
    }
    // Set storage from allStorage outside of the fullyLoaded check to prevent
    // cache calls on requests that have requested all data to get a single
    // tables data. Make sure $this->storage is populated in this case.
    $this->storage = $this->allStorage;
    return $this->allStorage;
}

API Navigation

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