function EntityStorageBase::buildNotFoundCacheId
Same name and namespace in other branches
- main core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::buildNotFoundCacheId()
Builds the cache ID entity IDs that are not found.
Parameters
string|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 166
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\EntityCode
protected function buildNotFoundCacheId(string|int $id) : string {
// Ensure that any overrides of ::buildCacheId() are reflected here too.
return "not_found:" . $this->buildCacheId($id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.