protected function DefaultSingleLazyPluginCollection::initializePlugin in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::initializePlugin()
- 9 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::initializePlugin()
1 method overrides DefaultSingleLazyPluginCollection::initializePlugin()
- SearchPluginCollection::initializePlugin in core/
modules/ search/ src/ Plugin/ SearchPluginCollection.php - Initializes and stores a plugin.
File
- core/
lib/ Drupal/ Core/ Plugin/ DefaultSingleLazyPluginCollection.php, line 61
Class
- DefaultSingleLazyPluginCollection
- Provides a default plugin collection for a plugin type.
Namespace
Drupal\Core\PluginCode
protected function initializePlugin($instance_id) {
$this
->set($instance_id, $this->manager
->createInstance($instance_id, $this->configuration));
}