Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LazyPluginCollection.php

function LazyPluginCollection::removeInstanceId

Removes an instance ID.

Parameters

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

2 calls to LazyPluginCollection::removeInstanceId()
DefaultLazyPluginCollection::removeInstanceId in core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php
Removes an instance ID.
DefaultLazyPluginCollection::removeInstanceId in core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php
Removes an instance ID.
1 method overrides LazyPluginCollection::removeInstanceId()
DefaultLazyPluginCollection::removeInstanceId in core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php
Removes an instance ID.

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);
}
RSS feed
Powered by Drupal