function ContentEntityStorageBase::buildRevisionCacheId
Builds the cache ID for the passed in revision ID.
Parameters
int $id: Entity ID or revision ID for which the cache ID should be built.
Return value
string Cache ID that can be passed to the cache backend.
5 calls to ContentEntityStorageBase::buildRevisionCacheId()
- ContentEntityStorageBase::getFromPersistentRevisionCache in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Gets entity revisions from the persistent cache backend.
- ContentEntityStorageBase::getFromStaticRevisionCache in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Gets entity revisions from the static cache.
- ContentEntityStorageBase::loadMultipleRevisions in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Loads multiple entity revisions.
- ContentEntityStorageBase::resetRevisionCache in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Resets the static and persistent revision caches.
- ContentEntityStorageBase::setStaticCache in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Stores entities in the static entity and entity revision cache.
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php, line 1336
Class
- ContentEntityStorageBase
- Base class for content entity storage handlers.
Namespace
Drupal\Core\EntityCode
protected function buildRevisionCacheId($id) : string {
return "values:{$this->entityTypeId}:revision:{$id}";
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.