Adds an instance ID to the array of available instance IDs.
Parameters
string $id:
The ID of the plugin instance to add.
File
- drupal/core/lib/Drupal/Component/Plugin/PluginBag.php, line 103
- Contains \Drupal\Component\Plugin\PluginBag.
Class
- PluginBag
- Defines an object which stores multiple plugin instances to lazy load them.
Namespace
Drupal\Component\Plugin
Code
public function addInstanceID($id) {
$this->instanceIDs[$id] = $id;
}