You are here

public function TagPluginCollection::getConfiguration in Extensible BBCode 8.3

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

Gets the current configuration of all plugins in this collection.

Return value

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

Overrides DefaultLazyPluginCollection::getConfiguration

File

src/TagPluginCollection.php, line 64

Class

TagPluginCollection
A collection of tag plugins.

Namespace

Drupal\xbbcode

Code

public function getConfiguration() : array {

  // Strip tag name from configuration.
  $configuration = parent::getConfiguration();
  $original = [];
  foreach ($configuration as $instance_id => $plugin) {
    $name = $plugin['name'];
    unset($plugin['name']);
    $original[$name] = $plugin;
  }
  return $original;
}