public EntityTypeBundleInfo::clearCachedBundles()
Clears static and persistent bundles.
Overrides EntityTypeBundleInfoInterface::clearCachedBundles
File
- core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php, line 121
Class
- EntityTypeBundleInfo
- Provides discovery and retrieval of entity type bundles.
Namespace
Drupal\Core\Entity
Code
1 2 3 4 5 6 | public function clearCachedBundles() { $this ->bundleInfo = []; Cache::invalidateTags([ 'entity_bundles' ]); // Entity bundles are exposed as data types, clear that cache too. $this ->typedDataManager->clearCachedDefinitions(); } |
Please login to continue.