public function PluginBag::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.

1 call to PluginBag::remove()
DisplayBag::remove in drupal/core/modules/views/lib/Drupal/views/DisplayBag.php
Overrides \Drupal\Component\Plugin\PluginBag::remove().
1 method overrides PluginBag::remove()
DisplayBag::remove in drupal/core/modules/views/lib/Drupal/views/DisplayBag.php
Overrides \Drupal\Component\Plugin\PluginBag::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]);
}