You are here

public function DefaultLazyPluginCollection::removeInstanceId in Plug 7

Removes an instance ID.

Parameters

string $instance_id: The ID of the plugin instance to remove.

Overrides LazyPluginCollection::removeInstanceId

1 call to DefaultLazyPluginCollection::removeInstanceId()
DefaultLazyPluginCollection::setConfiguration in lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php
Sets the configuration for all plugins in this collection.

File

lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php, line 185
Contains \Drupal\Core\Plugin\DefaultLazyPluginCollection.

Class

DefaultLazyPluginCollection
Provides a default plugin collection for a plugin type.

Namespace

Drupal\Core\Plugin

Code

public function removeInstanceId($instance_id) {
  parent::removeInstanceId($instance_id);
  unset($this->originalOrder[$instance_id]);
  unset($this->configurations[$instance_id]);
}