You are here

protected function ConfigEntityStorage::buildCacheId in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::buildCacheId()
  2. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::buildCacheId()

Builds the cache ID for the passed in entity ID.

Parameters

int $id: Entity ID for which the cache ID should be built.

Return value

string Cache ID that can be passed to the cache backend.

Overrides EntityStorageBase::buildCacheId

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 323

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

protected function buildCacheId($id) {
  return parent::buildCacheId($id) . ':' . ($this->overrideFree ? '' : implode(':', $this->configFactory
    ->getCacheKeys()));
}