public ElementInfoManager::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
public function clearCachedDefinitions() { $this->elementInfo = NULL; $this->cacheTagInvalidator->invalidateTags(['element_info_build']); parent::clearCachedDefinitions(); }
© 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!Render!ElementInfoManager.php/function/ElementInfoManager::clearCachedDefinitions/8.1.x