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

Breadcrumb

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

function ViewsData::prepareCid

Prepares the cache ID by appending a language code.

Parameters

string $cid: The cache ID to prepare.

Return value

string The prepared cache ID.

2 calls to ViewsData::prepareCid()
ViewsData::cacheGet in core/modules/views/src/ViewsData.php
Gets data from the cache backend.
ViewsData::cacheSet in core/modules/views/src/ViewsData.php
Sets data to the cache backend.

File

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

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

protected function prepareCid($cid) {
    return $cid . ':' . $this->langcode;
}

API Navigation

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