W3cubDocs

/Drupal 8

public function TypedDataManager::clearCachedDefinitions

public TypedDataManager::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

core/lib/Drupal/Core/TypedData/TypedDataManager.php, line 267

Class

TypedDataManager
Manages data type plugins.

Namespace

Drupal\Core\TypedData

Code

public function clearCachedDefinitions() {
  parent::clearCachedDefinitions();
  $this->prototypes = array();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!TypedDataManager.php/function/TypedDataManager::clearCachedDefinitions/8.1.x