function EntityStorageBase::buildCacheId
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::buildCacheId()
- 10 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::buildCacheId()
- 11.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::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.
6 calls to EntityStorageBase::buildCacheId()
- ConfigEntityStorage::buildCacheId in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php - Builds the cache ID for the passed in entity ID.
- 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 entity cache.
- EntityStorageBase::getFromStaticCache in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Gets entities from the static cache.
- EntityStorageBase::resetCache in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Resets the internal entity cache.
1 method overrides EntityStorageBase::buildCacheId()
- ConfigEntityStorage::buildCacheId in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php - Builds the cache ID for the passed in entity ID.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php, line 175
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\EntityCode
protected function buildCacheId($id) {
return "values:{$this->entityTypeId}:{$id}";
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.