public function DefaultPluginManager::useCaches in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::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 CachedDiscoveryInterface::useCaches
1 call to DefaultPluginManager::useCaches()
- EntityTypeManager::useCaches in core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php - Disable the use of caches.
1 method overrides DefaultPluginManager::useCaches()
- EntityTypeManager::useCaches in core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php - Disable the use of caches.
File
- core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php, line 220 - Contains \Drupal\Core\Plugin\DefaultPluginManager.
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
public function useCaches($use_caches = FALSE) {
$this->useCaches = $use_caches;
if (!$use_caches) {
$this->definitions = NULL;
}
}