public EntityStorageBase::resetCache(array $ids = NULL)
Resets the internal, static entity cache.
Parameters
$ids: (optional) If specified, the cache is reset for the entities with the given ids only.
Overrides EntityStorageInterface::resetCache
File
- core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 115
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\Entity
Code
1 2 3 4 5 6 7 8 9 10 | public function resetCache( array $ids = NULL) { if ( $this ->entityType->isStaticallyCacheable() && isset( $ids )) { foreach ( $ids as $id ) { unset( $this ->entities[ $id ]); } } else { $this ->entities = array (); } } |
Please login to continue.