Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CachedDiscoveryInterface.php

function CachedDiscoveryInterface::clearCachedDefinitions

Clears static and persistent plugin definition caches.

Don't resort to calling \Drupal::cache()->delete() and friends to make Drupal detect new or updated plugin definitions. Always use this method on the appropriate plugin type's plugin manager!

2 methods override CachedDiscoveryInterface::clearCachedDefinitions()
DefaultPluginManager::clearCachedDefinitions in core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
Clears static and persistent plugin definition caches.
DerivativeDiscoveryDecorator::clearCachedDefinitions in core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php
Clears static and persistent plugin definition caches.

File

core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php, line 17

Class

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

Namespace

Drupal\Component\Plugin\Discovery

Code

public function clearCachedDefinitions();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal