You are here

public function CachedDiscoveryClearer::clearCachedDefinitions in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
  2. 10 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
  2. 9 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()

Clears the cache on all cached discoveries.

Overrides CachedDiscoveryClearerInterface::clearCachedDefinitions

File

core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php, line 81

Class

CachedDiscoveryClearer
Provides a proxy class for \Drupal\Core\Plugin\CachedDiscoveryClearer.

Namespace

Drupal\Core\ProxyClass\Plugin

Code

public function clearCachedDefinitions() {
  return $this
    ->lazyLoadItself()
    ->clearCachedDefinitions();
}