function EntityStorageBase::buildCacheId
Same name and namespace in other branches
- 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.
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.