public function DefaultSingleLazyPluginCollection::addInstanceId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::addInstanceId()
Adds an instance ID to the available instance IDs.
Parameters
string $id: The ID of the plugin instance to add.
array|null $configuration: (optional) The configuration used by this instance. Defaults to NULL.
Overrides LazyPluginCollection::addInstanceId
File
- core/
lib/ Drupal/ Core/ Plugin/ DefaultSingleLazyPluginCollection.php, line 101 - Contains \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection.
Class
- DefaultSingleLazyPluginCollection
- Provides a default plugin collection for a plugin type.
Namespace
Drupal\Core\PluginCode
public function addInstanceId($id, $configuration = NULL) {
parent::addInstanceId($id, $configuration);
if ($configuration !== NULL) {
$this
->setConfiguration($configuration);
}
}