function CachedDiscoveryClearerInterface::addCachedDiscovery

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearerInterface.php \Drupal\Core\Plugin\CachedDiscoveryClearerInterface::addCachedDiscovery()
  2. 10 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearerInterface.php \Drupal\Core\Plugin\CachedDiscoveryClearerInterface::addCachedDiscovery()

Adds a plugin manager to the active list.

Parameters

\Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface $cached_discovery: An object that implements the cached discovery interface, typically a plugin manager.

2 methods override CachedDiscoveryClearerInterface::addCachedDiscovery()
CachedDiscoveryClearer::addCachedDiscovery in core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php
Adds a plugin manager to the active list.
CachedDiscoveryClearer::addCachedDiscovery in core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php
Adds a plugin manager to the active list.

File

core/lib/Drupal/Core/Plugin/CachedDiscoveryClearerInterface.php, line 19

Class

CachedDiscoveryClearerInterface
Provides a way to clear static caches of all plugin managers.

Namespace

Drupal\Core\Plugin

Code

public function addCachedDiscovery(CachedDiscoveryInterface $cached_discovery);

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