function LazyPluginCollection::clear
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::clear()
- 8.9.x core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::clear()
- 10 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::clear()
Clears all instantiated plugins.
1 call to LazyPluginCollection::clear()
- DisplayPluginCollection::clear in core/
modules/ views/ src/ DisplayPluginCollection.php
1 method overrides LazyPluginCollection::clear()
- DisplayPluginCollection::clear in core/
modules/ views/ src/ DisplayPluginCollection.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ LazyPluginCollection.php, line 55
Class
- LazyPluginCollection
- Defines an object which stores multiple plugin instances to lazy load them.
Namespace
Drupal\Component\PluginCode
public function clear() {
$this->pluginInstances = [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.