ViewsData

Class to manage and lazy load cached views data.

If a table is requested and cannot be loaded from cache, all data is then requested from cache. A table-specific cache entry will then be created for the requested table based on this cached data. Table data is only rebuilt when no cache entry for all table data can be retrieved.

Hierarchy

File

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

Namespace

Drupal\views

Members

Name Modifiers Type Description
ViewsData::$allStorage protected property All table storage data loaded from cache.
ViewsData::$baseCid protected property The base cache ID to use.
ViewsData::$cacheBackend protected property The cache backend to use.
ViewsData::$fullyLoaded protected property Whether the data has been fully loaded in this request.
ViewsData::$langcode protected property The current language code.
ViewsData::$languageManager protected property The language manager.
ViewsData::$moduleHandler protected property Stores a module manager to invoke hooks.
ViewsData::$skipCache protected property Whether or not to skip data caching and rebuild data each time.
ViewsData::$storage protected property Table data storage.
ViewsData::cacheGet protected function Gets data from the cache backend.
ViewsData::cacheSet protected function Sets data to the cache backend.
ViewsData::clear public function Clears the class storage and cache.
ViewsData::fetchBaseTables public function Fetches a list of all base tables available.
ViewsData::get Deprecated public function Gets data for a particular table, or all tables.
ViewsData::getAll public function Gets all table data.
ViewsData::getData protected function Gets all data invoked by hook_views_data().
ViewsData::prepareCid protected function Prepares the cache ID by appending a language code.
ViewsData::processEntityTypes protected function Links tables with 'entity type' to respective generic entity-type tables.
ViewsData::__construct public function Constructs this ViewsData object.
doc_Drupal
2016-10-29 09:54:56
Comments
Leave a Comment

Please login to continue.