function DefaultSingleLazyPluginCollection::initializePlugin
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::initializePlugin()
- 10 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::initializePlugin()
- 11.x core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::initializePlugin()
Overrides LazyPluginCollection::initializePlugin
2 calls to DefaultSingleLazyPluginCollection::initializePlugin()
- BlockPluginCollection::initializePlugin in core/
modules/ block/ src/ BlockPluginCollection.php - Initializes and stores a plugin.
- SearchPluginCollection::initializePlugin in core/
modules/ search/ src/ Plugin/ SearchPluginCollection.php - Initializes and stores a plugin.
2 methods override DefaultSingleLazyPluginCollection::initializePlugin()
- BlockPluginCollection::initializePlugin in core/
modules/ block/ src/ BlockPluginCollection.php - Initializes and stores a plugin.
- 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));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.