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

Breadcrumb

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

function ViewsData::cacheGet

Gets data from the cache backend.

Parameters

string $cid: The cache ID to return.

Return value

mixed The cached data.

2 calls to ViewsData::cacheGet()
ViewsData::get in core/modules/views/src/ViewsData.php
Gets data for a particular table.
ViewsData::getData in core/modules/views/src/ViewsData.php
Gets all data invoked by hook_views_data().

File

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

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

protected function cacheGet($cid) {
    return $this->cacheBackend
        ->get($this->prepareCid($cid));
}

API Navigation

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