public function EntityTypeManager::useCaches in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityTypeManager.php \Drupal\Core\Entity\EntityTypeManager::useCaches()
Disable the use of caches.
Can be used to ensure that uncached plugin definitions are returned, without invalidating all cached information.
This will also remove all local/static caches.
Parameters
bool $use_caches: FALSE to not use any caches.
Overrides DefaultPluginManager::useCaches
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php, line 144 - Contains \Drupal\Core\Entity\EntityTypeManager.
Class
- EntityTypeManager
- Manages entity type plugin definitions.
Namespace
Drupal\Core\EntityCode
public function useCaches($use_caches = FALSE) {
parent::useCaches($use_caches);
if (!$use_caches) {
$this->handlers = [];
}
}