You are here

public function TagPluginCollection::setConfiguration in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/TagPluginCollection.php \Drupal\xbbcode\TagPluginCollection::setConfiguration()

Sets the configuration for all plugins in this collection.

Parameters

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

Return value

$this

Overrides DefaultLazyPluginCollection::setConfiguration

1 call to TagPluginCollection::setConfiguration()
TagPluginCollection::__construct in src/TagPluginCollection.php
Constructs a new DefaultLazyPluginCollection object.

File

src/TagPluginCollection.php, line 53

Class

TagPluginCollection
A collection of tag plugins.

Namespace

Drupal\xbbcode

Code

public function setConfiguration($configuration) {

  // Copy instance ID into configuration as the tag name.
  foreach ($configuration as $instance_id => $plugin) {
    $configuration[$instance_id]['name'] = $instance_id;
  }
  parent::setConfiguration($configuration);
}