function views_fetch_data

Fetch Views' data from the cache

$param string|null $table (optional) The name of the table for which to fetch Views' data. If NULL, data for all tables will be retrieved

Parameters

bool $reset: (optional) Whether to rebuild the cache. Defaults to FALSE.

Return value

array An associative array of views data for the given table. If $table is NULL, the array will be keyed by table name, with each key corresponding to the data array for that table.

See also

hook_views_data()

26 calls to views_fetch_data()
ApiDataTest::testViewsData in drupal/core/modules/views/lib/Drupal/views/Tests/Field/ApiDataTest.php
Unit testing the views data structure.
DefaultWizardDeriver::getDerivativeDefinitions in drupal/core/modules/views/lib/Drupal/views/Plugin/Type/DefaultWizardDeriver.php
Implements Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinitions().
DisplayPluginBase::getPlugin in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Get the instance of a plugin, for example style or row.
EntityReverse::query in drupal/core/modules/field/lib/Drupal/field/Plugin/views/relationship/EntityReverse.php
Called to implement a relationship in a query.
Field::get_base_table in drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php
Set the base_table and base_table_alias.

... See full list

File

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

Code

function views_fetch_data($table = NULL, $reset = FALSE) {
  views_include('cache');
  return _views_fetch_data($table, $reset);
}