You are here

public function TagPluginCollection::__construct in Extensible BBCode 8.3

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

Constructs a new DefaultLazyPluginCollection object.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.

array $configurations: (optional) An associative array containing the initial configuration for each plugin in the collection, keyed by plugin instance ID.

Overrides DefaultLazyPluginCollection::__construct

File

src/TagPluginCollection.php, line 25

Class

TagPluginCollection
A collection of tag plugins.

Namespace

Drupal\xbbcode

Code

public function __construct(TagPluginManager $manager, array $configurations = []) {
  parent::__construct($manager, $configurations);
  $this
    ->setConfiguration($configurations);
  $this
    ->sort();
}