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

protected function buildCacheId($id) {
  return "values:{$this->entityTypeId}:$id";
}
doc_Drupal
2016-10-29 08:57:31
Comments
Leave a Comment

Please login to continue.