public function EntityTypeManager::useCaches
public EntityTypeManager::useCaches($use_caches = FALSE)
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 139
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 = []; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityTypeManager.php/function/EntityTypeManager::useCaches/8.1.x