public function TamperPluginCollection::__construct in Tamper 8
Constructs a new TamperPluginCollection object.
Parameters
\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.
\Drupal\tamper\SourceDefinitionInterface $source_definition: A definition of which sources there are that Tamper plugins can use.
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/
TamperPluginCollection.php, line 32
Class
- TamperPluginCollection
- A collection of tamper plugins.
Namespace
Drupal\tamperCode
public function __construct(PluginManagerInterface $manager, SourceDefinitionInterface $source_definition, array $configurations = []) {
$this->sourceDefinition = $source_definition;
parent::__construct($manager, $configurations);
}