protected 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.

3 calls to ViewsData::prepareCid()
ViewsData::cacheGet in drupal/core/modules/views/lib/Drupal/views/ViewsData.php
Gets data from the cache backend.
ViewsData::get in drupal/core/modules/views/lib/Drupal/views/ViewsData.php
Gets data for a particular table, or all tables.
ViewsData::getData in drupal/core/modules/views/lib/Drupal/views/ViewsData.php
Gets all data invoked by hook_views_data().

File

drupal/core/modules/views/lib/Drupal/views/ViewsData.php, line 173
Contains \Drupal\views\ViewsData.

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

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