You are here

public function DisplayPluginManager::clearCachedDefinitions in Search API 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 DefaultPluginManager::clearCachedDefinitions

File

src/Display/DisplayPluginManager.php, line 72

Class

DisplayPluginManager
Manages display plugins.

Namespace

Drupal\search_api\Display

Code

public function clearCachedDefinitions() {
  parent::clearCachedDefinitions();
  $this->discovery = NULL;
}