public function LazyPluginCollection::removeInstanceId in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::removeInstanceId()
Removes an instance ID.
Parameters
string $instance_id: The ID of the plugin instance to remove.
File
- lib/
Drupal/ Component/ Plugin/ LazyPluginCollection.php, line 145 - 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 removeInstanceId($instance_id) {
unset($this->instanceIDs[$instance_id]);
$this
->remove($instance_id);
}