ContentEntityStorageBase::buildCacheId

protected ContentEntityStorageBase::buildCacheId($id)

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.

File

core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 658

Class

ContentEntityStorageBase
Base class for content entity storage handlers.

Namespace

Drupal\Core\Entity

Code

1
2
3
protected function buildCacheId($id) {
  return "values:{$this->entityTypeId}:$id";
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.