public function LazyPluginCollection::remove in Plug 7
Removes an initialized plugin.
The plugin can still be used; it will be reinitialized.
Parameters
string $instance_id: The ID of the plugin instance to remove.
1 call to LazyPluginCollection::remove()
- LazyPluginCollection::removeInstanceId in lib/
Drupal/ Component/ Plugin/ LazyPluginCollection.php - Removes an instance ID.
File
- lib/
Drupal/ Component/ Plugin/ LazyPluginCollection.php, line 111 - Contains \Drupal\Component\Plugin\LazyPluginCollection.
Class
- LazyPluginCollection
- Defines an object which stores multiple plugin instances to lazy load them.
Namespace
Drupal\Component\PluginCode
public function remove($instance_id) {
unset($this->pluginInstances[$instance_id]);
}