/** * Constructs a new BlockPluginBag. * * @param \Drupal\Component\Plugin\PluginManagerInterface $manager * The manager to be used for instantiating plugins. * @param string $instance_id * The ID of the plugin instance. * @param array $configuration * An array of configuration. * @param string $block_id * The unique ID of the block entity using this plugin. */ public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration, $block_id) { parent::__construct($manager, $instance_id, $configuration); $this->blockId = $block_id; }
/** * Constructs a new SearchPluginBag. * * @param \Drupal\Component\Plugin\PluginManagerInterface $manager * The manager to be used for instantiating plugins. * @param string $instance_id * The ID of the plugin instance. * @param array $configuration * An array of configuration. * @param string $search_page_id * The unique ID of the search page using this plugin. */ public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration, $search_page_id) { parent::__construct($manager, $instance_id, $configuration); $this->searchPageId = $search_page_id; }