function LazyPluginCollection::initializePlugin

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::initializePlugin()
  2. 8.9.x core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::initializePlugin()
  3. 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.