function CacheCollector::getCid

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

Gets the cache ID.

Return value

string

4 calls to CacheCollector::getCid()
CacheCollector::clear in core/lib/Drupal/Core/Cache/CacheCollector.php
CacheCollector::invalidateCache in core/lib/Drupal/Core/Cache/CacheCollector.php
Invalidate the cache.
CacheCollector::lazyLoadCache in core/lib/Drupal/Core/Cache/CacheCollector.php
Loads the cache if not already done.
CacheCollector::updateCache in core/lib/Drupal/Core/Cache/CacheCollector.php
Writes a value to the persistent cache immediately.
3 methods override CacheCollector::getCid()
LibraryDiscoveryCollector::getCid in core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php
LocaleLookup::getCid in core/modules/locale/src/LocaleLookup.php
MenuActiveTrail::getCid in core/lib/Drupal/Core/Menu/MenuActiveTrail.php

File

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

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.