public function EntityFieldManager::useCaches in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::useCaches()
Disable the use of caches.
Parameters
bool $use_caches: FALSE to not use any caches.
Overrides EntityFieldManagerInterface::useCaches
File
- core/
lib/ Drupal/ Core/ Entity/ EntityFieldManager.php, line 628
Class
- EntityFieldManager
- Manages the discovery of entity fields.
Namespace
Drupal\Core\EntityCode
public function useCaches($use_caches = FALSE) {
$this->useCaches = $use_caches;
if (!$use_caches) {
$this->fieldDefinitions = [];
$this->baseFieldDefinitions = [];
$this->fieldStorageDefinitions = [];
$this->activeFieldStorageDefinitions = [];
}
}