/** * Constructs a FeedsSingleLazyPluginCollection. * * @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 \Drupal\feeds\FeedTypeInterface $feed_type * The feed feed type this plugin belongs to. */ public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration, FeedTypeInterface $feed_type) { // Sneak the feed type in via configuration. // @todo Remove this once plugins don't need the type. $configuration['feed_type'] = $feed_type; parent::__construct($manager, $instance_id, $configuration); }
/** * Constructs a new EntityQueueHandlerPluginCollection. * * @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 \Drupal\entityqueue\EntityQueueInterface $queue * The entity queue using this plugin. */ public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration, EntityQueueInterface $queue) { parent::__construct($manager, $instance_id, $configuration); $this->queue = $queue; }
/** * Constructs a new BlockPluginCollection. * * @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 SearchPluginCollection. * * @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; }