You are here

protected function CacheCollector::getCid in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::getCid()
  2. 9 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;
}