function CacheCollector::getCid

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::getCid()
  2. 10 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::getCid()
  3. 8.9.x core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::getCid()

Gets the cache ID.

Return value

string

1 method overrides CacheCollector::getCid()
LocaleLookup::getCid in core/modules/locale/src/LocaleLookup.php
Gets the cache ID.

File

core/lib/Drupal/Core/Cache/CacheCollector.php, line 127

Class

CacheCollector
Default implementation for CacheCollectorInterface.

Namespace

Drupal\Core\Cache

Code

protected function getCid() {
  return $this->cid;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.