You are here

public function jCarouselSkinsManager::clearCachedDefinitions in jCarousel 8.4

Same name and namespace in other branches
  1. 8.5 src/jCarouselSkinsManager.php \Drupal\jcarousel\jCarouselSkinsManager::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 DefaultPluginManager::clearCachedDefinitions

File

src/jCarouselSkinsManager.php, line 98
Contains \Drupal\jcarousel\jCarouselSkinsManager.

Class

jCarouselSkinsManager
Defines a jcarousel skins plugin manager to deal with skins.

Namespace

Drupal\jcarousel

Code

public function clearCachedDefinitions() {
  parent::clearCachedDefinitions();
  $this->instances = [];
}