public function EntityTypeBundleInfo::clearCachedBundles in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php \Drupal\Core\Entity\EntityTypeBundleInfo::clearCachedBundles()
Clears static and persistent bundles.
Overrides EntityTypeBundleInfoInterface::clearCachedBundles
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeBundleInfo.php, line 126 - Contains \Drupal\Core\Entity\EntityTypeBundleInfo.
Class
- EntityTypeBundleInfo
- Provides discovery and retrieval of entity type bundles.
Namespace
Drupal\Core\EntityCode
public function clearCachedBundles() {
$this->bundleInfo = [];
Cache::invalidateTags([
'entity_bundles',
]);
// Entity bundles are exposed as data types, clear that cache too.
$this->typedDataManager
->clearCachedDefinitions();
}