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
File
- core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DerivativeDiscoveryDecorator.php, line 257
Class
- DerivativeDiscoveryDecorator
- Base class providing the tools for a plugin discovery to be derivative aware.
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function useCaches($use_caches = FALSE) {
if (!$use_caches) {
$this
->clearCachedDefinitions();
}
}