public EntityFieldManager::useCaches($use_caches = FALSE)
Disable the use of caches.
@todo Remove in https://www.drupal.org/node/2549143.
Parameters
bool $use_caches: FALSE to not use any caches.
Overrides EntityFieldManagerInterface::useCaches
File
- core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 551
Class
- EntityFieldManager
- Manages the discovery of entity fields.
Namespace
Drupal\Core\Entity
Code
public function useCaches($use_caches = FALSE) { $this->useCaches = $use_caches; if (!$use_caches) { $this->fieldDefinitions = []; $this->baseFieldDefinitions = []; $this->fieldStorageDefinitions = []; } }
Please login to continue.