public function LazyPluginCollection::removeInstanceId in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::removeInstanceId()
- 9 core/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
- core/
lib/ Drupal/ Component/ Plugin/ LazyPluginCollection.php, line 140
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);
}