You are here

public function TypedConfigManager::clearCachedDefinitions in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::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!

Overrides TypedDataManager::clearCachedDefinitions

File

core/lib/Drupal/Core/Config/TypedConfigManager.php, line 206

Class

TypedConfigManager
Manages config schema type plugins.

Namespace

Drupal\Core\Config

Code

public function clearCachedDefinitions() {
  $this->schemaStorage
    ->reset();
  parent::clearCachedDefinitions();
}