Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityFieldManager.php

function EntityFieldManager::useCaches

Overrides EntityFieldManagerInterface::useCaches

File

core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 635

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 = [];
        $this->activeFieldStorageDefinitions = [];
    }
}
RSS feed
Powered by Drupal