ViewsData::getData

protected ViewsData::getData() Gets all data invoked by hook_views_data(). This is requested from the cache before being rebuilt. Return value array An array of all data. File core/modules/views/src/ViewsData.php, line 235 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected function getData() { $this->fullyLoaded = TRUE; if ($data = $this->cacheGet($this->baseCid)) { return $data->data; } else { $modules =

ViewsData::getRevisionViewsTableForEntityType

protected ViewsData::getRevisionViewsTableForEntityType(EntityTypeInterface $entity_type) Gets the table of an entity type to be used as revision table in views. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type. Return value string The revision base table. File core/modules/content_moderation/src/ViewsData.php, line 262 Class ViewsData Provides the content_moderation views integration. Namespace Drupal\content_moderation Code protected function getRevi

ViewsData::prepareCid

protected ViewsData::prepareCid($cid) Prepares the cache ID by appending a language code. Parameters string $cid: The cache ID to prepare. Return value string The prepared cache ID. File core/modules/views/src/ViewsData.php, line 223 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected function prepareCid($cid) { return $cid . ':' . $this->langcode; }

ViewsData::getViewsData

public ViewsData::getViewsData() Returns the views data. Return value array The views data. File core/modules/content_moderation/src/ViewsData.php, line 49 Class ViewsData Provides the content_moderation views integration. Namespace Drupal\content_moderation Code public function getViewsData() { $data = []; $data['content_revision_tracker']['table']['group'] = $this->t('Content moderation (tracker)'); $data['content_revision_tracker']['entity_type'] = [ 'title' => $t

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::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::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::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::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::$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;