function CachedDiscoveryClearer::__construct

Constructs the CachedDiscoveryClearer service.

Parameters

\Traversable $cachedDiscoveries: The cached discoveries.

File

core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php, line 46

Class

CachedDiscoveryClearer
Defines a class which is capable of clearing the cache on plugin managers.

Namespace

Drupal\Core\Plugin

Code

public function __construct(#[AutowireIterator(tag: 'plugin_manager_cache_clear')] protected \Traversable $cachedDiscoveries) {
}

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