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.
File
- drupal/core/lib/Drupal/Component/Plugin/PluginBag.php, line 93
- Contains \Drupal\Component\Plugin\PluginBag.
Class
- PluginBag
- Defines an object which stores multiple plugin instances to lazy load them.
Namespace
Drupal\Component\Plugin
Code
public function remove($instance_id) {
unset($this->pluginInstances[$instance_id]);
}