ViewsData::$moduleHandler

Stores a module manager to invoke hooks. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/views/src/ViewsData.php, line 81 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected $moduleHandler;

ViewsData::$skipCache

Whether or not to skip data caching and rebuild data each time. Type: bool File core/modules/views/src/ViewsData.php, line 67 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected $skipCache = FALSE;

ViewsData::$storage

Table data storage. This is used for explicitly requested tables. Type: array File core/modules/views/src/ViewsData.php, line 43 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected $storage = array();

ViewsData::alterViewsData

public ViewsData::alterViewsData(array &$data) Alters the table and field information from hook_views_data(). Parameters array $data: An array of all information about Views tables and fields, collected from hook_views_data(), passed by reference. See also hook_views_data() File core/modules/content_moderation/src/ViewsData.php, line 240 Class ViewsData Provides the content_moderation views integration. Namespace Drupal\content_moderation Code public function alterViewsData(array

ViewsData::cacheGet

protected ViewsData::cacheGet($cid) Gets data from the cache backend. Parameters string $cid: The cache ID to return. Return value mixed The cached data, if any. This will immediately return FALSE if the $skipCache property is TRUE. File core/modules/views/src/ViewsData.php, line 194 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected function cacheGet($cid) { if ($this->skipCache) { return FALSE; } return $this->cac

ViewsData::cacheSet

protected ViewsData::cacheSet($cid, $data) Sets data to the cache backend. Parameters string $cid: The cache ID to set. mixed $data: The data that will be cached. File core/modules/views/src/ViewsData.php, line 210 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected function cacheSet($cid, $data) { return $this->cacheBackend->set($this->prepareCid($cid), $data, Cache::PERMANENT, array('views_data', 'config:core.extension'))

ViewsData::clear

public ViewsData::clear() Clears the class storage and cache. File core/modules/views/src/ViewsData.php, line 329 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code public function clear() { $this->storage = array(); $this->allStorage = array(); $this->fullyLoaded = FALSE; Cache::invalidateTags(array('views_data')); }

ViewsData::fetchBaseTables

public ViewsData::fetchBaseTables() Fetches a list of all base tables available. Return value array An array of base table data keyed by table name. Each item contains the following keys: title: The title label for the base table. help: The help text for the base table. weight: The weight of the base table. File core/modules/views/src/ViewsData.php, line 299 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code public function fetchBaseTable

ViewsData::get

public ViewsData::get($key = NULL) Gets data for a particular table, or all tables. Parameters string|null $key: The key of the cache entry to retrieve. Defaults to NULL, this will return all table data. Return value array $data An array of table data. Deprecated NULL $key deprecated in Drupal 8.2.x and will be removed in 9.0.0. Use getAll() instead. See also https://www.drupal.org/node/2723553 File core/modules/views/src/ViewsData.php, line 146 Class ViewsData Class to manage and la

ViewsData::getAll

public ViewsData::getAll() Gets all table data. Return value array $data An array of table data. See also https://www.drupal.org/node/2723553 File core/modules/views/src/ViewsData.php, line 119 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 c