public function FlaggingStorage::resetCache in Flag 8.4
Resets the internal, static entity cache.
Parameters
$ids: (optional) If specified, the cache is reset for the entities with the given ids only.
Overrides ContentEntityStorageBase::resetCache
File
- src/
Entity/ Storage/ FlaggingStorage.php, line 30
Class
- FlaggingStorage
- Default SQL flagging storage.
Namespace
Drupal\flag\Entity\StorageCode
public function resetCache(array $ids = NULL) {
parent::resetCache($ids);
$this->flagIdsByEntity = [];
$this->globalFlagIdsByEntity = [];
}