You are here

public function InstallablePluginManager::clearCachedDefinitions in Markdown 8.2

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!

Overrides DefaultPluginManager::clearCachedDefinitions

File

src/PluginManager/InstallablePluginManager.php, line 133

Class

InstallablePluginManager
Installable Plugin Manager.

Namespace

Drupal\markdown\PluginManager

Code

public function clearCachedDefinitions() {
  parent::clearCachedDefinitions();
  static::$runtimeDefinitions = [];
}