You are here

public function MetatagViewsCachePluginManager::clearCachedDefinitions in Metatag 8

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 CachedDiscoveryInterface::clearCachedDefinitions

File

metatag_views/src/MetatagViewsCachePluginManager.php, line 74

Class

MetatagViewsCachePluginManager

Namespace

Drupal\metatag_views

Code

public function clearCachedDefinitions() {
  $this->viewsPluginManager
    ->clearCachedDefinitions();
}