public function BlockPluginCollection::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block/src/BlockPluginCollection.php \Drupal\block\BlockPluginCollection::__construct()
Constructs a new BlockPluginCollection.
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.
string $block_id: The unique ID of the block entity using this plugin.
Overrides DefaultSingleLazyPluginCollection::__construct
File
- core/
modules/ block/ src/ BlockPluginCollection.php, line 38 - Contains \Drupal\block\BlockPluginCollection.
Class
- BlockPluginCollection
- Provides a collection of block plugins.
Namespace
Drupal\blockCode
public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration, $block_id) {
parent::__construct($manager, $instance_id, $configuration);
$this->blockId = $block_id;
}