protected function EntityStorageBase::buildCacheId in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::buildCacheId()
- 9 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.
7 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.
- ContentEntityStorageBase::setPersistentCache in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Stores entities in the persistent cache backend.
- EntityStorageBase::getFromStaticCache in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Gets entities from the static 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 141
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\EntityCode
protected function buildCacheId($id) {
return "values:{$this->entityTypeId}:{$id}";
}