function LazyPluginCollection::remove
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::remove()
- 10 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::remove()
- 11.x core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::remove()
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.
2 calls to LazyPluginCollection::remove()
- DisplayPluginCollection::remove in core/
modules/ views/ src/ DisplayPluginCollection.php - Removes an initialized plugin.
- LazyPluginCollection::removeInstanceId in core/
lib/ Drupal/ Component/ Plugin/ LazyPluginCollection.php - Removes an instance ID.
1 method overrides LazyPluginCollection::remove()
- DisplayPluginCollection::remove in core/
modules/ views/ src/ DisplayPluginCollection.php - Removes an initialized plugin.
File
-
core/
lib/ Drupal/ Component/ Plugin/ LazyPluginCollection.php, line 106
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]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.