You are here

abstract protected function LazyPluginCollection::initializePlugin in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::initializePlugin()
  2. 10 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::initializePlugin()

Initializes and stores a plugin.

Parameters

string $instance_id: The ID of the plugin instance to initialize.

1 call to LazyPluginCollection::initializePlugin()
LazyPluginCollection::get in core/lib/Drupal/Component/Plugin/LazyPluginCollection.php
Gets a plugin instance, initializing it if necessary.
3 methods override LazyPluginCollection::initializePlugin()
DefaultLazyPluginCollection::initializePlugin in core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php
Initializes and stores a plugin.
DefaultSingleLazyPluginCollection::initializePlugin in core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php
Initializes and stores a plugin.
TestLazyPluginCollection::initializePlugin in core/modules/system/tests/modules/plugin_test/src/Plugin/TestLazyPluginCollection.php
Initializes and stores a plugin.

File

core/lib/Drupal/Component/Plugin/LazyPluginCollection.php, line 32

Class

LazyPluginCollection
Defines an object which stores multiple plugin instances to lazy load them.

Namespace

Drupal\Component\Plugin

Code

protected abstract function initializePlugin($instance_id);