You are here

protected function DefaultSingleLazyPluginCollection::initializePlugin in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::initializePlugin()
  2. 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\Plugin

Code

protected function initializePlugin($instance_id) {
  $this
    ->set($instance_id, $this->manager
    ->createInstance($instance_id, $this->configuration));
}