function LazyPluginCollection::setConfiguration

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::setConfiguration()
  2. 10 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::setConfiguration()
  3. 11.x core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::setConfiguration()

Sets the configuration for all plugins in this collection.

Parameters

array $configuration: An array of up-to-date plugin configuration.

Return value

$this

3 methods override LazyPluginCollection::setConfiguration()
DefaultLazyPluginCollection::setConfiguration in core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php
Sets the configuration for all plugins in this collection.
DefaultSingleLazyPluginCollection::setConfiguration in core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php
Sets the configuration for all plugins in this collection.
TestLazyPluginCollection::setConfiguration in core/modules/system/tests/modules/plugin_test/src/Plugin/TestLazyPluginCollection.php
Sets the configuration for all plugins in this collection.

File

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

Class

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

Namespace

Drupal\Component\Plugin

Code

public abstract function setConfiguration($configuration);

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