public function TagPluginCollection::__construct in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 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 24
Class
- TagPluginCollection
- A collection of tag plugins.
Namespace
Drupal\xbbcodeCode
public function __construct(TagPluginManager $manager, array $configurations = []) {
parent::__construct($manager, $configurations);
$this
->setConfiguration($configurations);
$this
->sort();
}