You are here

protected function ContentEntityStorageBase::buildCacheId in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::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.

3 calls to ContentEntityStorageBase::buildCacheId()
ContentEntityStorageBase::getFromPersistentCache in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Gets entities from the persistent cache backend.
ContentEntityStorageBase::resetCache in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Resets the internal, static entity cache.
ContentEntityStorageBase::setPersistentCache in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Stores entities in the persistent cache backend.

File

core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 641
Contains \Drupal\Core\Entity\ContentEntityStorageBase.

Class

ContentEntityStorageBase
Base class for content entity storage handlers.

Namespace

Drupal\Core\Entity

Code

protected function buildCacheId($id) {
  return "values:{$this->entityTypeId}:{$id}";
}