function DefaultPluginManager::useCaches

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::useCaches()
  2. 10 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::useCaches()
  3. 11.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::useCaches()

Overrides CachedDiscoveryInterface::useCaches

1 call to DefaultPluginManager::useCaches()
EntityTypeManager::useCaches in core/lib/Drupal/Core/Entity/EntityTypeManager.php
Disable the use of caches.
1 method overrides DefaultPluginManager::useCaches()
EntityTypeManager::useCaches in core/lib/Drupal/Core/Entity/EntityTypeManager.php
Disable the use of caches.

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 233

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

public function useCaches($use_caches = FALSE) {
    $this->useCaches = $use_caches;
    if (!$use_caches) {
        $this->definitions = NULL;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.