You are here

public function LazyPluginCollection::clear in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::clear()

Clears all instantiated plugins.

File

lib/Drupal/Component/Plugin/LazyPluginCollection.php, line 60
Contains \Drupal\Component\Plugin\LazyPluginCollection.

Class

LazyPluginCollection
Defines an object which stores multiple plugin instances to lazy load them.

Namespace

Drupal\Component\Plugin

Code

public function clear() {
  $this->pluginInstances = array();
}