function CacheCollector::getCid

Same name in other branches
  1. 8.9.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. 11.x 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
Clears the collected cache entry.
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
Gets the cache ID.
LocaleLookup::getCid in core/modules/locale/src/LocaleLookup.php
Gets the cache ID.
MenuActiveTrail::getCid in core/lib/Drupal/Core/Menu/MenuActiveTrail.php

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.