function DerivativeDiscoveryDecorator::clearCachedDefinitions

Same name in other branches
  1. 11.x core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php \Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator::clearCachedDefinitions()

Overrides CachedDiscoveryInterface::clearCachedDefinitions

1 call to DerivativeDiscoveryDecorator::clearCachedDefinitions()
DerivativeDiscoveryDecorator::useCaches in core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php
Disable the use of caches.

File

core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php, line 250

Class

DerivativeDiscoveryDecorator
Base class providing the tools for a plugin discovery to be derivative aware.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function clearCachedDefinitions() {
    $this->derivers = [];
}

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