You are here

public function CachedDiscoveryInterface::useCaches in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::useCaches()

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.

1 method overrides CachedDiscoveryInterface::useCaches()
DefaultPluginManager::useCaches in lib/Drupal/Component/Plugin/DefaultPluginManager.php
Disable the use of caches.

File

lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php, line 35
Contains \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface.

Class

CachedDiscoveryInterface
Interface for discovery components holding a cache of plugin definitions.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function useCaches($use_caches = FALSE);