public function DefaultSingleLazyPluginCollection::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::__construct()
Constructs a new DefaultSingleLazyPluginCollection object.
Parameters
\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.
string $instance_id: The ID of the plugin instance.
array $configuration: An array of configuration.
2 calls to DefaultSingleLazyPluginCollection::__construct()
- BlockPluginCollection::__construct in core/
modules/ block/ src/ BlockPluginCollection.php - Constructs a new BlockPluginCollection.
- SearchPluginCollection::__construct in core/
modules/ search/ src/ Plugin/ SearchPluginCollection.php - Constructs a new SearchPluginCollection.
2 methods override DefaultSingleLazyPluginCollection::__construct()
- BlockPluginCollection::__construct in core/
modules/ block/ src/ BlockPluginCollection.php - Constructs a new BlockPluginCollection.
- SearchPluginCollection::__construct in core/
modules/ search/ src/ Plugin/ SearchPluginCollection.php - Constructs a new SearchPluginCollection.
File
- core/
lib/ Drupal/ Core/ Plugin/ DefaultSingleLazyPluginCollection.php, line 58 - Contains \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection.
Class
- DefaultSingleLazyPluginCollection
- Provides a default plugin collection for a plugin type.
Namespace
Drupal\Core\PluginCode
public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration) {
$this->manager = $manager;
$this->instanceId = $instance_id;
// This is still needed by the parent LazyPluginCollection class.
$this->instanceIDs = array(
$instance_id => $instance_id,
);
$this->configuration = $configuration;
}