function LazyPluginCollection::removeInstanceId

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::removeInstanceId()
  2. 8.9.x core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::removeInstanceId()
  3. 11.x 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.

1 call to LazyPluginCollection::removeInstanceId()
DefaultLazyPluginCollection::removeInstanceId in core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php
1 method overrides LazyPluginCollection::removeInstanceId()
DefaultLazyPluginCollection::removeInstanceId in core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php

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\Plugin

Code

public function removeInstanceId($instance_id) {
    unset($this->instanceIds[$instance_id]);
    $this->remove($instance_id);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.