You are here

abstract protected function LazyPluginCollection::initializePlugin in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::initializePlugin()
  2. 9 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 method overrides LazyPluginCollection::initializePlugin()
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);