function EntityStorageBase::getNotFoundFromStaticCache
Same name and namespace in other branches
- main core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getNotFoundFromStaticCache()
Gets not found entities from the static cache.
Parameters
array $ids: IDs to check against the cache of not found entity IDs.
Return value
array Array of not found entity IDs.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php, line 207
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\EntityCode
protected function getNotFoundFromStaticCache(array $ids) : array {
$not_found = [];
foreach ($ids as $id) {
if ($this->memoryCache
->get($this->buildNotFoundCacheId($id))) {
$not_found[] = $id;
}
}
return $not_found;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.